One problem with parkour mission
#1

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..
Reply
#2

pawn Код:
SetTimerEx("pradekime",60*1000,0,"i",playerid);
replace with
pawn Код:
SetTimerEx("pradekime",60*1000,0,"i");
Reply
#3

i try, but than it start's for one player, who first join the server...
Reply
#4

who can help?
Reply
#5

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);
    }
}
Reply
#6

It's working! very very very thank you man
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)