One problem with parkour mission - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: One problem with parkour mission (
/showthread.php?tid=171406)
One problem with parkour mission -
Mantux94 - 26.08.2010
Hello, i have MM server and i wanna add parkour mission, i create it with race maker and edit the script, now it's good, but i have one problem i want that the mission start after one minute when the gamemod load. but in the OnGameModeInit i cant add funkcion " SetTimerEx("pradekime",60*1000,0,"i",playerid); " because playerid is missing in ongamemodeinit.. , what i must do? if i add it on player spawn, than the time didn't match to all player's, i attachment the script, please help.
Sorry bad english..
Re: One problem with parkour mission -
Brian_Furious - 26.08.2010
pawn Код:
SetTimerEx("pradekime",60*1000,0,"i",playerid);
replace with
pawn Код:
SetTimerEx("pradekime",60*1000,0,"i");
Re: One problem with parkour mission -
Mantux94 - 26.08.2010
i try, but than it start's for one player, who first join the server...
Re: One problem with parkour mission -
Mantux94 - 26.08.2010
who can help?
Re: One problem with parkour mission -
woot - 26.08.2010
pawn Код:
SetTimer("pradekime",60*1000,0);
pawn Код:
public pradekime()
{
for(new i; i < MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i)) continue;
SendClientMessage(i, COLOR_GREEN,"Skaiиiuojamas laikas..");
SetCameraBehindPlayer(i);
TogglePlayerControllable(i,0);
Motocountdown[i] = 6;
SetPlayerRaceCheckpoint(i,0,racecheckpoints[0][0],racecheckpoints[0][1],racecheckpoints[0][2],racecheckpoints[1][0],racecheckpoints[1][1],racecheckpoints[1][2],10);
DisablePlayerCheckpoint(i);
}
}
Re: One problem with parkour mission -
Mantux94 - 26.08.2010
It's working! very very very thank you man