[HELP]TakePlayerWeapon - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]TakePlayerWeapon (
/showthread.php?tid=148493)
[HELP]TakePlayerWeapon -
sushihusi - 17.05.2010
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.
Re: [HELP]TakePlayerWeapon -
[XST]O_x - 17.05.2010
ResetPlayerWeapons(playerid);
Re: [HELP]TakePlayerWeapon -
MRArkham - 17.05.2010
Set the ammo for that gun to 0 and it should disappear?
Re: [HELP]TakePlayerWeapon -
sushihusi - 17.05.2010
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
Re: [HELP]TakePlayerWeapon -
MRArkham - 17.05.2010
If it works and you want a function then:
pawn Код:
stock TakePlayerWeapon(playerid, weaponid)
{
SetPlayerAmmo(playerid, weaponid, 0);
return 1;
}
Re: [HELP]TakePlayerWeapon -
sushihusi - 17.05.2010
It doesn't work but i have tryed your function and that is working. Thanks!