The command does not work when I use
#4

Try this one
PHP код:
if(strcmp(cmdtext"/armarevento"true) == 0){
    if(!
organizador[playerid] || pAdmin[playerid] < 5)return SendClientMessage(playerid,0xFF0000FF,"| INFO | Apenas Organizadores de Evento e Admins Pode Usar Esse Comando");
    if(!
strlen(tmp))return SendClientMessage(playerid,0xFF0000FF,"Uso /armarevento [arma id] [balas]");
    new 
arma,balas;
    
arma strval(tmp);
    if(
arma 46)return SendClientMessage(playerid,0xFF0000FF,"| ERRO | Arma invalida");
    
tmp strtok(cmdtext,idx);
    if(!
strlen(tmp))return SendClientMessage(playerid,0xFF0000FF,"Uso /armarevento [arma id] [balas]");
    
balas strval(tmp);
    for(new 
0MAX_PLAYERSi++)
    {
    if(
IsPlayerConnected(i) && InEvento[i] == 1)
    {
    
GivePlayerWeapon(i,arma,balas);
    }
    }
    return 
1;
    } 
Reply


Messages In This Thread
The command does not work when I use - by baela - 06.12.2016, 12:32
Re: The command does not work when I use - by Micko123 - 06.12.2016, 12:37
Re: The command does not work when I use - by baela - 06.12.2016, 12:41
Re: The command does not work when I use - by Micko123 - 06.12.2016, 12:44
Re: The command does not work when I use - by GoldenLion - 06.12.2016, 15:24

Forum Jump:


Users browsing this thread: 1 Guest(s)