[Ajuda] 2help
#4

tenta sua segunda pergunta assim se vc vai gostar
PHP код:
//TOPO GAMEMODE
new ArmaGet[2][MAX_PLAYERS];
new 
MunicaoGet[2][MAX_PLAYERS];
//---------------------------------------
    
new nomearmaLOL[15];
    for(new 
i=0i<MAX_PLAYERSi++)
    {
        if(
IsPlayerInBarDilli(i))
        {
            if(
GetPlayerWeapon(i) != || GetPlayerWeapon(i) != 4)//id das armas
            
{
                
SendClientMessage(iCOLOR_RED"Nessa area vocк sу pode andar com armas brancas!");
                
SendClientMessage(iCOLOR_RED"Leia as regras ou poderб ser punido!");
                
GetPlayerWeaponData(i0ArmaGet[0][i], MunicaoGet[0][i]);
                
GetPlayerWeaponData(i1ArmaGet[1][i], MunicaoGet[1][i]);
                if(
ArmaGet[0][i] != && MunicaoGet[0][i] != 0)
                {
                    
GetWeaponName(ArmaGet[0][i],nomearmaLOL,sizeof(nomearmaLOL));
                    if(
strcmp(nomearmaLOL,"Brass Knuckles",true) == 0)
                    {
                        
SetPlayerArmedWeapon(i1);
                    }
                }
                else if(
ArmaGet[1][i] != && MunicaoGet[1][i] != 0)
                {
                    
GetWeaponName(ArmaGet[1][i],nomearmaLOL,sizeof(nomearmaLOL));
                    if(
strcmp(nomearmaLOL,"Knife",true) == 0)
                    {
                        
SetPlayerArmedWeapon(i4);
                    }
                }
                else
                {
                    
SetPlayerArmedWeapon(i0);
                }
            }
        }
    } 
@EDIT
as armas nгo serao resetadas. A funзгo SetPlayerArmedWeapon ira somente definira arma do jogador.
Reply


Messages In This Thread
2help - by silviosdois - 15.12.2013, 13:15
Re: 2help - by silviosdois - 15.12.2013, 23:58
Re: 2help - by silviosdois - 16.12.2013, 11:45
Re: 2help - by lucas_mdr1235 - 16.12.2013, 12:50
Re: 2help - by lucas_mdr1235 - 16.12.2013, 13:43

Forum Jump:


Users browsing this thread: 1 Guest(s)