17.03.2014, 08:43
Quote:
That's still pretty confusing tbh. Can you be a little more clear? Also why is the random(100)? And not 10 like why is it not if num = 1
Random(10); |
pawn Код:
new player_Status[MAX_PLAYERS], player_Timer[MAX_PLAYERS];
CMD:hotwire(playerid, params[])
{
player_Status[playerid] = 1;
player_Timer[playerid] = SetTimerEx("aFewSecondsTimer", 5000, true, "i", playerid);
}
forward aFewSecondsTimer(playerid);
public aFewSecondsTimer(playerid)
{
if(player_Status[playerid] == 1)
{
blablablabla
player_Status[playerid] = 2;
}
else if(player_Status[playerid] == 2)
{
blablablabla
player_Status[playerid] = 3
}
else if(player_Status[playerid] == 3)
{
blablablabla
KillTimer(player_Timer[playerid]);
}
}