Jump to content
  • 0

Timer comanda


Mihail.

Question

Salut, am incercat sa pun pe 2 comenzi un timer si nu reusesc ma puteti ajuta?

 

CMD:licitez(playerid,params[])
{

    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
    if(IsPlayerConnected(playerid))
    {
        new money;
        if(licitatie == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "{37B9C8}Nu este nici o licitatie activata.");
        new string[250],sendername[25];
        if(PlayerInfo[playerid][pMuted] == 1)
        {
            format(string, sizeof(string), "You can not speak, you have been silenced for %d seconds.",PlayerInfo[playerid][pMuteTime]);
            SendClientMessage(playerid, COLOR_LIGHTRED, string);
            return 1;
        }
        if(sscanf(params, "i",money)) return SendClientMessage(playerid, COLOR_WHITE, "{B8DBFF}Synthax: /licitez [ suma ]");
        GetPlayerName(playerid,sendername,sizeof(sendername));
        format(string, sizeof(string), "{a9c4e4}Licitatie: %s ofera {ee5555}$%s.{a9c4e4}Ofera cineva mai mult ?{ee5555}/licitez .", sendername,FormatNumber(money));
        OOCOff(COLOR_OOC,string);
        SendClientMessage(playerid, COLOR_LIGHTRED,"Daca nu ai aceasta suma de bani vei primi warn.");
        licitatie = 1;
        printf("%s", string);
    }
    return 1;
}

 

CMD:report(playerid, params[])
{
    if(PlayerInfo[playerid][pMuted] == 1) return SendClientMessage(playerid, COLOR_LIGHTRED, "Ai mute nu poti folosi comanda /report .");
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
    if(IsPlayerConnected(playerid))
    {
        new sendername[MAX_PLAYER_NAME],string[300],helptext[250];
        GetPlayerName(playerid, sendername, sizeof(sendername));
         if(sscanf(params, "s[250]",helptext)) return SCM(playerid,COLOR_WHITE,"{00FF00}Folosire{FFFFFF}: /report <Message>");
        format(string, sizeof(string), "{0066FF}Report nou de la {FFFFFF}%s {FFFFFF}(%d) {FF3300}: {FF3300}%s. {FFFFFF}Foloseste(/ar %d)", sendername,playerid,helptext,playerid);
        ABroadCast(COLOR_LIGHTRED,string,1);
        reportsend[playerid] = 1;
        SendClientMessage(playerid, COLOR_WHITE,"{FAE604}Reportul tau a fost trimis adminilor {04D2FA}PZONE");
        SetPVarString(playerid, "Report", helptext);
    }
    return 1;
}

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.