26.06.2011, 10:02
Exemplo:
Ou:
PHP код:
public OnPlayerSpawn( playerid )
{
for( new i = 0; i <= MAX_PLAYERS; i++ )
{
if( IsPlayerConnected( i ) )
{
if( dInfo[ i ][ Lider ] == PoliciaMilitar || dInfo[ i ][ Membro ] == PoliciaMilitar ) return SetPlayerColor( i, 0xFFF000AA );
else if( dInfo[ i ][ Lider ] == ForcasArmadas || dInfo[ i ][ Membro ] == ForcasArmadas ) return SetPlayerColor( i, 0xFFFFFFFF );
/* Continue ... */
}
}
return true;
}
PHP код:
public OnPlayerSpawn( playerid )
{
if( dInfo[ playerid ][ Lider ] == PoliciaMilitar || dInfo[ playerid ][ Membro ] == PoliciaMilitar ) return SetPlayerColor( playerid, 0xFFF000AA );
else if( dInfo[ playerid ][ Lider ] == ForcasArmadas || dInfo[ playerid ][ Membro ] == ForcasArmadas ) return SetPlayerColor( playerid, 0xFFFFFFFF );
/* Continue ... */
return true;
}