PDA

View Full Version : icon check


iBots
23/02/2014, 08:44 PM
Is there any way to check if the player got any icon on him?
Like if he got an icon or label on him

RealHobo009
23/02/2014, 08:51 PM
I assume you could make a for loop, and check for a "hasLabel[playerid]" and then run the code:


//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
}
}

iBots
24/02/2014, 04:11 AM
I meant like example:to get players health you do GetPlayerHealth
How to get like ifvhe got any icons attached to him