03.12.2013, 10:45
Under OnPlayerUpdate
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!
pawn Код:
if(GetPlayerWeapon(playerid) == 0)
{
SetPlayerArmedWeapon(playerid, 1, 1);
}
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!