SA-MP Forums Archive
Will This work - 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: Will This work (/showthread.php?tid=165040)



Will This work - Kitten - 03.08.2010

Solved


Re: Will This work - willsuckformoney - 03.08.2010

pawn Код:
if(GetPlayerSkin(playerid) == 286)
{
SendClientMessageToAll(COLOR_RED,"The President has been killed");
SetTimer("NewRound",5000,true);
}
i know the death part but not sure about the timer


Re: Will This work - Kar - 03.08.2010

actually

pawn Код:
if(GetPlayerSkin(playerid) == 286)
{
    for(new i=0; i < MAX_PLAYERS; i++)
    {
        SendClientMessageToAll(COLOR_RED,"The President has been killed");
        SetTimerEx("NewRound", 5000, false, "i", i);
    }
}



Re: Will This work - iggy1 - 03.08.2010

:0 500 timers even if the player not connected not very efficient. (no isplayerconnected check) and i think one timer would do. Put any loops inside the timer. Thats what id do anway.