[Ayuda] Timer
#2

pawn Код:
if(strcmp(cmd, "/comando", true) == 0)
    {
        if(PlayerInfo[playerid][pAdmin] == 1)
        {
            SendClientMessage(playerid, Color, "La funciуn se realizarб en 10 segundos.";
                        SetTimer("TuFuncion",10000,false);
                        SetPlayerCheckpoint(playerid, X, Y, Z, 3.0);
                        SendClientMessage(playerid, Color, "Te mostramos el checkpoint despuйs de 10 segundos.";   
        }
        return 1;
    }

forward TuFuncion();
public TuFuncion() //la callback la cual el timer llamara
{
SetPlayerHeath(playerid,90);//la funcion que se ara en 10 Seg

return 1;
}
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: 1 Guest(s)