[HELP] Admin Player ID Color
#1

How would i go about making it where when the admins go /adon their players name turns red then when they do /adoff it goes back normal? Please help !
Reply
#2

/adon
- Single player
Quote:

CMD:adon(playerid, params[])
{
SetPlayerColor(playerid, COLOR_RED);
return 1;
}

- All players
Quote:

CMD:adon(playerid, params[])
{
for(new i =0; i < MAX_PLAYERS; i++)
{
SetPlayerColor(i, COLOR_RED);
}
return 1;
}

/adoff
- Single player
Quote:

CMD:adoff(playerid, params[])
{
SetPlayerColor(playerid, COLOR_WHITE);
return 1;
}

- All players
Quote:

CMD:adoff(playerid, params[])
{
for(new i =0; i < MAX_PLAYERS; i++)
{
SetPlayerColor(playerid, COLOR_WHITE);
return 1;
}
}

Reply
#3

thanks rep++
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)