Quote:
Originally Posted by nezo2001
PHP код:
public OnPlayerUpdate(playerid)
{
if(GetPlayerWeapon(playerid) == 27)
{
GivePlayerWeapon(playerid,27, 0);
GivePlayerWeapon(playerid,31,5000);//amount of ammo you want replace it with 5000
}
return 1;
}
Try this
|
Giving player 0 ammo doesn't remove his current weapon.
Also, your code gets the weapon that he is holding in his hand not the one he posses.