25.06.2018, 13:21
(
Последний раз редактировалось Adamoneoone; 25.06.2018 в 16:43.
)
Hey guys i'm trying to setup a police system. When a player has wanted level, his name and map icons should turn red.
So far I have this code, but it isn't working.
Any ideas?
Thanks for your help!
So far I have this code, but it isn't working.
PHP код:
CMD:police(playerid, params[])
{
//previous blabla
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(GetPlayerWantedLevel(i) >= 1)
{
SetPlayerMarkerForPlayer(playerid, i, 0xFF0000FF);
}
}
return 1;
}
Thanks for your help!