pawn Код:
if(strcmp(cmd, "/startengine",true) == 0)
{
if(IsPlayerConnected(playerid))
{
if((GetPlayerState(playerid) == PLAYER_STATE_DRIVER))
{
GameTextForPlayer(playerid, " ~g~Starting....", 4000, 3);
StartTimer = SetTimer("StartTime", 1000, 0);
}
}
return 1;
}
pawn Код:
public StartTime(playerid)
{
KillTimer(StartTimer);
StartTimer2 = SetTimer("StartTime2", 1000, 0);
return 1;
}