icon check - 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: icon check (
/showthread.php?tid=496796)
icon check -
iBots - 23.02.2014
Is there any way to check if the player got any icon on him?
Like if he got an icon or label on him
Re: icon check -
RealHobo009 - 23.02.2014
I assume you could make a for loop, and check for a "hasLabel[playerid]" and then run the code:
pawn Код:
//When the label gets created
hasLabel[playerid] = 1;
//Command or sth..
for(new i; i < MAX_PLAYERS; i++)
{
if(hasLabel[i] == 1)
{
//Do some code here
}
}
Re: icon check -
iBots - 24.02.2014
I meant like example:to get players health you do GetPlayerHealth
How to get like ifvhe got any icons attached to him