new giveplayerid;ResetPlayerWeapons(giveplayerid);
new giveplayerid;ResetPlayerWeapons(giveplayerid); Így!
csak EGY fegyvert elvenni[/quote]stock RemovePlayerWeapon(playerid, pweaponid){ new plyWeapons[12]; new plyAmmo[12]; for(new slot = 0; slot != 12; slot++) { new pwep, pammo; GetPlayerWeaponData(playerid, slot, pwep, pammo); if(pwep != pweaponid) { GetPlayerWeaponData(playerid, slot, plyWeapons[slot], plyAmmo[slot]); } } ResetPlayerGuns(playerid); for(new slot = 0; slot != 12; slot++) { GivePlayerGun(playerid, plyWeapons[slot], plyAmmo[slot]); }} http://forum.sa-mp.com/showthread.php?t=313365
stock RemovePlayerWeapon(playerid, pweaponid){ new plyWeapons[12]; new plyAmmo[12]; for(new slot = 0; slot != 12; slot++) { new pwep, pammo; GetPlayerWeaponData(playerid, slot, pwep, pammo); if(pwep != pweaponid) { GetPlayerWeaponData(playerid, slot, plyWeapons[slot], plyAmmo[slot]); } } ResetPlayerGuns(playerid); for(new slot = 0; slot != 12; slot++) { GivePlayerGun(playerid, plyWeapons[slot], plyAmmo[slot]); }}