[Ayuda] Timer
#5

Quote:
Originally Posted by Jovanny
Посмотреть сообщение
pawn Код:
if(strcmp(cmd, "/comando", true) == 0)
{
    if(PlayerInfo[playerid][pAdmin] == 1)
    {
        SendClientMessage(playerid, Color, "La funciуn se realizarб en 10 segundos.");
        SendClientMessage(playerid, Color, "Te mostramos el checkpoint despuйs de 10 segundos.");
        SetTimerEx("MostrarCheckpoint", 10 * 1000, false, "d", playerid); // Iniciar timer con un intervalo de 10 segundos y con el parametro "playerid"
    }
    return 1;
}

forward MostrarCheckpoint(playerid);
public MostrarCheckpoint(playerid)
{
    SetPlayerCheckpoint(playerid, X, Y, Z, 3.0);
}
Gracias Jovani por arreglarlo aveces cuando estas pendiente de otra cosa uno no se da cuenta del error.
Reply


Messages In This Thread
[Ayuda] Timer - by MrKaiser - 22.07.2012, 20:27
Respuesta: [Ayuda] Timer - by Parka - 22.07.2012, 20:49
Respuesta: [Ayuda] Timer - by Shiny_David - 22.07.2012, 23:13
Respuesta: [Ayuda] Timer - by Jovanny - 22.07.2012, 23:25
Respuesta: [Ayuda] Timer - by Parka - 23.07.2012, 01:30

Forum Jump:


Users browsing this thread: 3 Guest(s)