Timer Not working.
#4

Try this:

pawn Код:
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
    new szString[128], Float:Position[3], szName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, szName, sizeof(szName));
    GetPlayerPos(playerid, Position[0], Position[1], Position[2]);
    format(szString, sizeof(szString), "~g~Admin ~w~%s started a war ~n~ You will be teleported in ~r~10 seconds!. ", szName);
    GameTextForAll(szString, 5000, 5 );

    SetTimerEx("TeleportPlayers", 10000, false, "d", playerid, Position[0], Position[1], Position[2]);
    return 1;
}

forward TeleportPlayers(playerid, Float:X, Float:Y, Float:Z);
public TeleportPlayers(playerid, Float:X, Float:Y, Float:Z)
{
    for(new i = 0; i < MAX_PLAYERS; i++) SetPlayerPos(i, X, Y, Z);
    return 1;
}
Reply


Messages In This Thread
Timer Not working. - by Alex_Obando - 13.08.2011, 02:32
Re: Timer Not working. - by grand.Theft.Otto - 13.08.2011, 02:39
Respuesta: Timer Not working. - by Alex_Obando - 13.08.2011, 02:44
Re: Timer Not working. - by Scenario - 13.08.2011, 02:51
Re: Timer Not working. - by [L3th4l] - 13.08.2011, 03:08
Re: Timer Not working. - by Scenario - 13.08.2011, 03:15

Forum Jump:


Users browsing this thread: 2 Guest(s)