SA-MP Forums Archive
Empty Ammo problem - 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: Empty Ammo problem (/showthread.php?tid=629868)



Empty Ammo problem - PhamHoang - 05.03.2017

So i did run out of ammo system
This system also works when the weapon does not bullets
But when I turn to weapons, the two rounds of this operating system does not run out of ammo though guns
So anyone help me,sorry my english is slightly worse
OnPlayerUpdate
PHP код:
if(GetPlayerWeaponState(playerid) == WEAPONSTATE_NO_BULLETS)
    {
             
GameTextForPlayer(playerid,"~y~EMPTY AMMO",250,5);
             
SetPlayerArmedWeapon(playerid,0);
              return 
1;
    } 



Re: Empty Ammo problem - JessThompson - 05.03.2017

explain again but with alittle bit better english because I did not really understand what you were getting at, Thanks


Re: Empty Ammo problem - PhamHoang - 05.03.2017

Quote:
Originally Posted by JessThompson
Посмотреть сообщение
explain again but with alittle bit better english because I did not really understand what you were getting at, Thanks
Sorry about my worse english , i can't explain anymore!


Re: Empty Ammo problem - JessThompson - 05.03.2017

So tell me if I'm wrong,

When the gun runs out of ammo you can still switch to it?