OnPlayerRequestSpawn
#1

Basically I need a timer so that when the player selects there class it won't let them spawn for 10 seconds. I just don't know how to do it?
Reply
#2

Don't know if this code will work.
pawn Код:
forward SpawnNow(playerid);

OnPlayerRequestSpawn(playerid)
{
    SetTimerEx("SpawnNow",10000,0,"d",playerid);
    return 0
}

public SpawnNow(playerid)
{
    OnPlayerSpawn(playerid);
    return 1;
}
Reply
#3

You can always use Unix Timestamps for such small things like this.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)