SA-MP Forums Archive
Rep for the one who figures this out - 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)
+--- Thread: Rep for the one who figures this out (/showthread.php?tid=479155)



Fixedd - Danialdano - 03.12.2013

dddd


Re: Rep for the one who figures this out - Voxel - 03.12.2013

Under OnPlayerUpdate
pawn Код:
if(GetPlayerWeapon(playerid) == 0)
{
    SetPlayerArmedWeapon(playerid, 1, 1);
}
https://sampwiki.blast.hk/wiki/GetPlayerWeapon
https://sampwiki.blast.hk/wiki/SetPlayerArmedWeapon

you could go even further then this and create a function that detects the players last weapon and set him back to it when the script detects he has "fists" which is weapon id 0.

good luck!


Re: Rep for the one who figures this out - Don_Cage - 03.12.2013

EDIT: Voxel was first :P