Jump to content
  • 0

[BUG] Comanda cine ma poate ajuta ..


semiboy99

Question

//-----------------------------------------Comanda-----------------------------------------//
    if(strcmp(cmd, "/givemoneyall", true) == 0)
    {
        if(gPlayerLogged[playerid] == 0)
         {
                SendClientMessage(playerid, COLOR_GREY, "{BFCOC2}Ne pare rau, dar nu esti logat pentru a utiliza aceata comanda!");
                return 1;
         }
        new PlayerName[MAX_PLAYER_NAME];
        GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
         if(EsteManager(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendUsage(playerid,"/givemoneyall [amount]");
                return 1;
            }
            moneys = strval(tmp);
            if(moneys < 1)
            {
                SendClientMessage(playerid, COLOR_GRAD1, "Nu poti sa dai mai putin de 1$.");
                return 1;
            }
            foreach(Player, i)
            {
                GivePlayerCash(i, moneys);
                format(string, sizeof(string), "{7FEF88}Administrator {7FEFE0}%s {7FEF88}a dat cate{E93CAC} $%d {7FEF88}tuturor playeri online.", PlayerData[playerid][pNume], moneys);
                PlayerPlaySound(i, 1052, 0.0, 0.0, 0.0);
                SendClientMessage(i, COLOR_BLUE, string);
                new hour,minute,second;
                new year, month,day;
                gettime(hour,minute,second);
                getdate(year, month, day);
                format(string, sizeof(string), "%s a dat (/givemoneyall) $%d la %s (%d/%d/%d ora: %d:%d:%d )", PlayerData[playerid][pNume], moneys, PlayerData[pNume], day, month, year, hour,minute,second);
                PayLog(string);
            }
        }
        else
        {
            SendClientMessage(playerid, COLOR_GRAD1, "Nu poti folosi aceasta comanda!");
            return 1;
        }
        return 1;
    }

 

nu pot sa o folosesc eu ca admin fondator  ... cine ma ajuta si pe mine ..

aceasta comanda e pe un servar cu mysql

Edited by semiboy99
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Si ce mesaj iti da cand scrii comanda? cumva  Nu poti folosi aceasta comanda

verifica asta EsteManager probabil ai gm blown deabi luat de pe net

 

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

  • 0

imi zice ca nu am autorizatie sa folosesc aceasta comanda si da e blown ii am de la un prieten ..

Si ce mesaj iti da cand scrii comanda? cumva  Nu poti folosi aceasta comanda

verifica asta EsteManager probabil ai gm blown deabi luat de pe net

 

imi zice ca nu am autorizatie sa folosesc aceasta comanda si da e blown ii am de la un prieten ....

ma poti ajuta terog ?

si scz de spam

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.