[Help]Not sure how to script this
#3

you can make a variable and a timer for the spawning part..

at top of script:

Код:
CanSpawn[MAX_PLAYERS];
OnPlayerConnect:

Код:
CanSpawn(playerid) = 1;
OnPlayerRequestSpawn:

Код:
if(CanSpawn == 0)
{
SendClientMessage(playerid,color,"You cannot spawn yet!");
return 0;
}
OnPlayerDeath:

Код:
CanSpawn = 0;
Then add a timer on onplayerdeath for the amount of secs you want and make the timer change canspawn to 1 so they can spawn
Reply


Messages In This Thread
[Help]Not sure how to script this - by bennyisme - 11.05.2010, 02:12
Re: [Help]Not sure how to script this - by Backwardsman97 - 11.05.2010, 02:23
Re: [Help]Not sure how to script this - by coole210 - 11.05.2010, 02:34
Re: [Help]Not sure how to script this - by bennyisme - 11.05.2010, 02:56
Re: [Help]Not sure how to script this - by coole210 - 11.05.2010, 03:19
Re: [Help]Not sure how to script this - by bennyisme - 11.05.2010, 03:24
Re: [Help]Not sure how to script this - by coole210 - 11.05.2010, 03:31
Re: [Help]Not sure how to script this - by bennyisme - 11.05.2010, 04:34
Re: [Help]Not sure how to script this - by bennyisme - 11.05.2010, 22:36
Re: [Help]Not sure how to script this - by bennyisme - 12.05.2010, 14:58

Forum Jump:


Users browsing this thread: 1 Guest(s)