Jump to content
  • 0

Timer


TeA

Question

As dori sa fac un cooldown de 2 min la o comanda ( votelider ) si nu ma descurc la timer , va rug frumos sa ma ajutati .

CMD:votelider(playerid,params[])
{
    if(IsPlayerConnected(playerid))
    {
        if(!votelider == 1) return SendClientMessage(playerid, COLOR_LIGHTRED, "Nu e nici o votare in desfasurare");
        {
            if(sscanf(params, "ui",id)) return SendClientMessage(playerid, 0xFFFFFFFF, "{FF9900}Scrie: {33CCFF}/votelider <Playerid>");
            if(IsPlayerConnected(id)) return SendClientMessage(playerid, 0xFFFFFFFF, "Jucatorul nominalizat nu este pe server .");
            {
                SendClientMessageToAll(COLOR_RED, " %s l-a ales pe %d pentru functia de lider.");
            }
        }
    }
    return 1;
}

 

p.s am incercat sa fac un timer singur adaugand : if((GetTickCount()-WaitTimeForCMD[playerid])>120000)return SendClientMessage(playerid,RED,"ERROR: Tocmai ai votat !"); dar primesc erori .

Edited by TeA
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.