[HELP]TakePlayerWeapon
#1

Is there a custom function wich takes the player's weapon?
Example: If somebody has got minigun, the server doesn't ban him, just take the minigun.
Reply
#2

ResetPlayerWeapons(playerid);
Reply
#3

Set the ammo for that gun to 0 and it should disappear?
Reply
#4

Quote:
Originally Posted by O_x
ResetPlayerWeapons(playerid);
I don't want to reset all his weapons only just the minigun.
Quote:
Originally Posted by Mr Arkham
Set the ammo for that gun to 0 and it should disappear?
Thx I will try it
Reply
#5

If it works and you want a function then:

pawn Код:
stock TakePlayerWeapon(playerid, weaponid)
{
  SetPlayerAmmo(playerid, weaponid, 0);
  return 1;
}
Reply
#6

It doesn't work but i have tryed your function and that is working. Thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)