[Duda]Como crear Timers entre funciones?
#7

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

forward Nombre(playerid);

public Nombre(playerid)
{

    if(cat[playerid] == 0) return SendClientMessage(playerid, COLOR, "Estarб aquн en 4 Segundos");
    if(cat[playerid] == 2)
    {
        SendClientMessage(playerid, COLOR, "Estarб sobre tu cabeza en 3 Segundos..");
        Kick(playerid);
        KillTimer(lol);
        return false;
    }
    return cat[playerid]++;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)