if(PlayerInfo[playerid][Level] == 6)
{
SetPlayerColor(playerid,COLOR_BLUE);
}
if(PlayerInfo[playerid][Level] == 5)
{
SetPlayerColor(playerid,red);
}
if(PlayerInfo[playerid][Level] == 4)
{
SetPlayerColor(playerid,red);
}
if(PlayerInfo[playerid][Level] == 3)
{
SetPlayerColor(playerid,red);
}
if(PlayerInfo[playerid][Level] == 2)
{
SetPlayerColor(playerid,red);
}
if(PlayerInfo[playerid][Level] == 1)
{
SetPlayerColor(playerid,red);
}
if(PlayerInfo[playerid][Level] <= 5 )
{
SetPlayerColor(playerid,red);
}
if(PlayerInfo[playerid][Level] == 6)
{
SetPlayerColor(playerid,COLOR_BLUE);
}
if(PlayerInfo[playerid][Level] >= 1 || <=5 ) // if its only <=5 it will set all players colour to red since the normal players are level 0 { SetPlayerColor(playerid,red); } if(PlayerInfo[playerid][Level] == 6) { SetPlayerColor(playerid,COLOR_BLUE); }
Код:
if(PlayerInfo[playerid][Level] >= 1 || <=5 ) // if its only <=5 it will set all players colour to red since the normal players are level 0 { SetPlayerColor(playerid,red); } if(PlayerInfo[playerid][Level] == 6) { SetPlayerColor(playerid,COLOR_BLUE); } |
public OnPlayerSpawn(playerid)
{
switch(PlayerInfo[playerid][Level])
{
case 1..5: SetPlayerColor(playerid,red);
case 6: SetPlayerColor(playerid,COLOR_BLUE);
}
return 1;
}
if(AccInfo[playerid][Level] >= 1 || AccInfo[playerid][Level] <= 5 ) { SetPlayerColor(playerid, red); if(AccInfo[playerid][Level] == 6) SetPlayerColor(playerid, COLOR_BLUE); return 1; }