Scripting/Squirrel/Functions/Pickups/GetGlobalPickupRespawnTime

From VC-MP Wiki

Jump to: navigation, search

This returns the time, after pickups will be respawned. The time is returned in seconds. Default: 60 secs.

Syntax

int GetGlobalPickupRespawnTime()

Example

This example will print the pickups respawn time, when the server will be started.

function onServerStart()
{
     print( "The pickups respawn time is set to " + GetGlobalPickupRespawnTime() + " secs." );
}

Notes

The call onServerStart was used in in this example. More info about them in corresponding pages.

Related Functions

Personal tools
squirrel scripting