22.07.2012, 20:49
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;
}