[Ajuda] GetPlayerWeaponData
#6

Testa ai

PHP код:
static SlotsArmas(armaid){
    new 
slot;
    switch(
armaid){
        case 
0..1:      slot 0;     // FIST
        
case 2..9:      slot 1;     // ARMA BRANCA
        
case 10..15slot 10// ARMAS SLAOQ
        
case 16..18slot 8;     // EXPLOSIVOS
        
case 22..24slot 2;     // PISTOLAS
        
case 25..27slot 3;     // DOZES
        
case 28..29slot 4;    // SUBS
        
case 30..31slot 5;    // FUZIS
        
case 32:      slot 4;    // SUBS
        
case 33..34slot 6;     // SNIPERS
        
case 35..38slot 7;     // BAZUCAS
        
case 39:      slot 8;     // EXPLOSIVO
        
case 40:      slot 12// DETONADOR
        
case 41..43slot 9;    // SLAS
        
case 44..46slot 11// VISГO
    
}
    return 
slot;
}
static 
SlotVazios(playerididarma){
    new 
Weapons[13][2];
    for(new 
013i++){
        
GetPlayerWeaponData(playeridiWeapons[i][0], Weapons[i][1]);
           if(
SlotsArmas(idarma) == && (Weapons[i][0] != 0))
            return 
true;
    }
    return 
false;

PHP код:
if(SlotVazios(playerididarma)) return SendClientMessage(playerid, -1"[!] Vocк jб possui arma nesse slot!"); 
Reply


Messages In This Thread
GetPlayerWeaponData - by Mitic0 - 05.08.2018, 01:32
Re: GetPlayerWeaponData - by willttoonn - 05.08.2018, 02:46
Re: GetPlayerWeaponData - by Mitic0 - 05.08.2018, 13:30
Re: GetPlayerWeaponData - by Felipealves - 05.08.2018, 14:48
Re: GetPlayerWeaponData - by Mitic0 - 05.08.2018, 16:21
Re: GetPlayerWeaponData - by Felipealves - 05.08.2018, 17:51

Forum Jump:


Users browsing this thread: 4 Guest(s)