[Ajuda] Bloquear Comando
#7

tenta assim:

PHP код:
if(strcmp(cmd"/versaldo"true) == 0)
    {
            if(
PlayerInfo[playerid][Profissao] == Bancario || IsPlayerAdmin(playerid))
                return 
SendClientMessage(playeridVermelho"| ERRO | Vocк nгo tem permissгo.");
            
            new 
plid;
            
tmp strtok(cmdtextidx);
            if(!
strlen(tmp))
                return 
SendClientMessage(playeridVermelho"| ERRO | Digite: /VerSaldo [id]");
            
plid strval(tmp);
            if(!
IsPlayerConnected(plid))
                return 
SendClientMessage(playeridVermelho"| ERRO | Jogador(a) nгo conectado(a)!");
            if(
plid == pAdmin[playerid] > 0)
                return 
SendClientMessage(playeridVermelho"| ERRO | Vocк nгo pode usar esse comando em admins.");
            new 
pname[MAX_PLAYER_NAME];
            
GetPlayerName(plidpnameMAX_PLAYER_NAME);
            
format(file2sizeof(file2), PASTA_CONTASpname);
            new 
string222[256];
            
SendClientMessage(playeridC_Bancario,"~~~~~~~~~~~~~~~~~~~~~~~~ Saldo ~~~~~~~~~~~~~~~~~~~~~~~~");
            
format(string222sizeof(string222), "» Vocк estб vendo o Saldo de: '%s' (%d)."pname,plid);
            
SendClientMessage(playeridC_Bancariostring222);
            
format(stringsizeof(string), "»{FFFFFF} Grana na mгo: {228B22}%d"GetPlayerGrana(plid));
            
SendClientMessage(playeridC_Bancariostring);
            
format(stringsizeof(string), "»{FFFFFF} Saldo bancбrio: {228B22}%d"dini_Int(file2"SaldoBancario"));
            
SendClientMessage(playeridC_Bancariostring);
            
SendClientMessage(playeridC_Bancario,"~~~~~~~~~~~~~~~~~~~~~~~~ Saldo ~~~~~~~~~~~~~~~~~~~~~~~~");
            return 
1;
        }
        return 
1;
    } 
Reply


Messages In This Thread
Bloquear Comando - by Geremias1533 - 12.06.2018, 05:53
Re: Bloquear Comando - by NelsonC - 12.06.2018, 08:39
Re: Bloquear Comando - by Geremias1533 - 12.06.2018, 09:43
Re: Bloquear Comando - by NelsonC - 12.06.2018, 10:18
Re: Bloquear Comando - by Geremias1533 - 14.06.2018, 05:08
Re: Bloquear Comando - by Geremias1533 - 14.06.2018, 16:40
Re: Bloquear Comando - by AutoMatic2 - 14.06.2018, 16:58
Re: Bloquear Comando - by Mises - 18.06.2018, 17:26
Re: Bloquear Comando - by DavyMedina - 19.06.2018, 23:29

Forum Jump:


Users browsing this thread: 1 Guest(s)