SA-MP Forums Archive
Searching Function - 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: Searching Function (/showthread.php?tid=608278)



Searching Function - lwilson - 30.05.2016

What function to check if the specific player has weapon and ammo?


Re: Searching Function - Stuntff - 30.05.2016

if(GetPlayerWeapon(playerid) == your weapon id && GetPlayerAmmo(playerid) == 50)
{
code
}


Re: Searching Function - SyS - 30.05.2016

GetplayerWeapon and GetplayerAmmo