SA-MP Forums Archive
Minigun Bug? - 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: Minigun Bug? (/showthread.php?tid=435839)



Minigun Bug? - _chimera_ - 08.05.2013

Hello everyone can someone explain why it happens so?
I take a minigun with a variable and those who see me in possession of the minigun I see myself with hourglass

Photo 1:
I have the mingun



foto2:

As a player he sees me:





Thank you for seeing this post


AW: Minigun Bug? - BigETI - 08.05.2013

Did you check OnPlayerUpdate in all of your scripts (including plugins) for its return value?


Re: Minigun Bug? - SDraw - 08.05.2013

Skin modification. Nuff said :3


Re: Minigun Bug? - CyNiC - 08.05.2013

The player or you was not updated(see the hourglass over your head).


Re: Minigun Bug? - _chimera_ - 09.05.2013

I checked everything under OnPlayerUpdate to have just that in the case of possession of minigun without variable you die




PHP код:
if(GetPlayerWeapon(playerid) == 38)
{
if(
minigun[playerid] == 2) return 0;
if(
minigun[playerid] == 0)
{
SetPlayerHealth(playerid0.00);
GameTextForPlayer(playerid"~r~Il minigun e permesso solo a /minigundm"30004);
}




AW: Minigun Bug? - BigETI - 09.05.2013

Do NOT return 0, if you want to keep the players synced to your server.


Re: Minigun Bug? - _chimera_ - 09.05.2013

thanks!