[HELP] SetPlayerColor Automatic
#8

eh sry not
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
SetTimerEx("namecolor", 10, true, "i", playerid);
return 1;
}
forward namecolor(playerid);
public namecolor(playerid)
{
    SetTimer("namecolor", 30000, 1);
  if(PlayerData[playerid][AdminLevel] == 1){
    SetPlayerColor(playerid,COLOR_GREEN);}
    if(PlayerData[playerid][AdminLevel] == 2){
    SetPlayerColor(playerid,COLOR_BLUE);}
    if(PlayerData[playerid][AdminLevel] == 3){
    SetPlayerColor(playerid,COLOR_RED);}
    else SetPlayerColor(playerid,COLOR_WHITE);
    return true;
}
try
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
SetTimerEx("namecolor", 10, true, "i", playerid);
return 1;
}
forward namecolor(playerid);
public namecolor(playerid)
{
   
  if(PlayerData[playerid][AdminLevel] == 1){
    SetPlayerColor(playerid,COLOR_GREEN);}
    if(PlayerData[playerid][AdminLevel] == 2){
    SetPlayerColor(playerid,COLOR_BLUE);}
    if(PlayerData[playerid][AdminLevel] == 3){
    SetPlayerColor(playerid,COLOR_RED);}
    else SetPlayerColor(playerid,COLOR_WHITE);
    return true;
}
Reply


Messages In This Thread
[HELP] SetPlayerColor Automatic - by SystemMaiN - 20.08.2009, 09:32
Re: [HELP] SetPlayerColor Automatic - by MenaceX^ - 20.08.2009, 09:35
Re: [HELP] SetPlayerColor Automatic - by SystemMaiN - 20.08.2009, 09:44
Re: [HELP] SetPlayerColor Automatic - by James_Alex - 20.08.2009, 10:56
Re: [HELP] SetPlayerColor Automatic - by MenaceX^ - 20.08.2009, 11:02
Re: [HELP] SetPlayerColor Automatic - by SystemMaiN - 20.08.2009, 12:08
Re: [HELP] SetPlayerColor Automatic - by MenaceX^ - 20.08.2009, 12:21
Re: [HELP] SetPlayerColor Automatic - by James_Alex - 20.08.2009, 12:22

Forum Jump:


Users browsing this thread: 2 Guest(s)