No bullets weapon show. - 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: No bullets weapon show. (
/showthread.php?tid=541588)
No bullets weapon show. -
Galletziz - 12.10.2014
Hay boyz, i have searched in a forum but i can't find nothing about this. I need to know how to show an weapon with 0 ammo equiped. Thanks for read. (Y)
Re: No bullets weapon show. -
Abagail - 12.10.2014
You can just give them a gun with 1 bullet and desync any bullets and then reset it. (Assuming it's not a melee weapon!)
pawn Код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
if(FakeGun[playerid] == true)
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, weapon, 1);
return 0; // - Stop/Desync the bullet.
}
return true;
}