Checking a player's value? - 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: Checking a player's value? (
/showthread.php?tid=466337)
Checking a player's value? -
Jason_Roul - 27.09.2013
For example, let's say a person has 0 bombs.
How can I check it, how would it work with if?
Re: Checking a player's value? -
TonyII - 27.09.2013
pawn Код:
//It's a example
if(PlayerInfo[playerid][pBombs] == 0) return SendClientMessage(playerid, - 1,"You got 0 bombs.");