26.11.2010, 22:59
Neither of those two work... I think the SetPlayerAmmo thing is bugged or something, here's my code.
This literally doesn't do anything, player still has all his ammo.
pawn Код:
switch(GetPlayerWeapon(playerid)) // mp5, tech 9, mac 10 by lars
{
case 29, 28, 32:
{
new gun = GetPlayerWeapon(playerid);
new ammo = GetPlayerAmmo(playerid);
ammo -=30;
SetPlayerAmmo(playerid,gun,ammo);
//RemovePlayerWeapon(playerid, gun);
PlayerInfo[playerid][pHadGun] = 1;
PlayerInfo[playerid][pHadGunID] = gun;
}
}