[Duda] Funcion arma
#2

pawn Код:
RemovePlayerWeapon(playerid, weaponid){
    new plyWeapons[12] = 0;
    new plyAmmo[12] = 0;
    for(new slot = 0; slot != 12; slot++){
        new wep, ammo;
        GetPlayerWeaponData(playerid, slot, wep, ammo);
        if(wep != weaponid && ammo != 0){
            GetPlayerWeaponData(playerid, slot, plyWeapons[slot], plyAmmo[slot]);
        }
    }
    ResetHackPlayerWeapons(playerid);
    for(new slot = 0; slot != 12; slot++){
        if(plyAmmo[slot] != 0){
            GiveHackPlayerWeapon(playerid, plyWeapons[slot], plyAmmo[slot]);
        }
    }
    return 1;
}
Reply


Messages In This Thread
[Duda] Funcion arma - by Brasi - 20.05.2014, 19:17
Respuesta: [Duda] Funcion arma - by Parka - 20.05.2014, 19:20
Respuesta: [Duda] Funcion arma - by Brasi - 20.05.2014, 19:25

Forum Jump:


Users browsing this thread: 1 Guest(s)