20.08.2009, 12:22
eh sry not
try
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;
}
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;
}