28.08.2011, 22:41
I tried your code, still not working... This is my whole "OnPlayerSpawn":
pawn Код:
public OnPlayerSpawn(playerid)
{
//TextDrawShowForPlayer(playerid,Timer);
TextDrawShowForPlayer(playerid,RScores);
TextDrawShowForPlayer(playerid,BScores);
if(IsPlayerVIP(playerid) || President[playerid] == 1)
{
SetPlayerArmour(playerid,100);
}
if(Team[playerid] == TEAM_RED)
{
if(!IsPlayerXAdmin(playerid) || !IsPlayerVIP(playerid))
{
SetPlayerColor(playerid,RED);
}
}
else
{
if(!IsPlayerXAdmin(playerid) || !IsPlayerVIP(playerid))
{
SetPlayerColor(playerid,BLUE);
}
}
if(President[playerid] == 1)
{
SetPlayerColor(playerid,yellow);
}
else if((IsPlayerXAdmin(playerid) || IsPlayerVIP(playerid) && (President[playerid] == 0)))
{
SetPlayerColor(playerid,white);
}
else if((President[playerid] == 1) && (IsPlayerXAdmin(playerid) || IsPlayerVIP(playerid)))
{
SetPlayerColor(playerid,yellow);
}
return 1;
}