[Duda]Como crear Timers entre funciones?
#2

si queres hacer eso con timers podes hacerlo asi:

pawn Код:
if(strcmp,"/ChuckNorris",cmdtext, true){
    SendClientMessage(playerid, COLOR, "El vendrб por ti y te violarб en 5 segundos..");
    SetTimerEx("Nombre", 1000, false, "i", playerid);
    return 1;
}

forward Nombre(playerid);
forward Nombre2(playerid);

public Nombre(playerid)
{
    SendClientMessage(playerid, COLOR, "Estarб aquн en 4 Segundos");
    SetTimerEx("Nombre2", 1000, false, "i", playerid);
}
public Nombre2(playerid)
{
    SendClientMessage(playerid, COLOR, "Estarб sobre tu cabeza en 3 Segundos..");
    Kick(playerid)
}
= ese codigo no es 100% eficiente, de hecho es muy poco eficiente creo yo

Nota:
Quote:
Originally Posted by Lunnatiicz
Посмотреть сообщение
pawn Код:
SendClientMessage(playerid, COLOR, "Estarб aquн en 4 Segundos
Sarpado fail
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)