05.07.2013, 18:49
pawn Код:
if( strcmp( cmd, "/socios", true ) == 0 )
{
if( IsPlayerConnected( playerid ))
{
SendClientMessage( playerid, COR_GRO, "Sуcios Online:" );
for( new i = 0; i < MAX_PLAYERS; i++ )
{
if( IsPlayerConnected( i ))
{
if( PlayerInfo[ i ][ pAdmin ] < 1340 ) // Se o jogador for admin abaixo do nнvel 1340 de admin
{
if( PlayerInfo[ i ][ pSocio ] == 1 )
{
GetPlayerName( i, sendername, sizeof( sendername ));
format( string, 256, "Sуcio: %s[Socio Bronze]", sendername );
SendClientMessage( playerid, COR_SOCIOB, string );
}
else if( PlayerInfo[ i ][ pSocio ] == 2 )
{
GetPlayerName( i, sendername, sizeof( sendername ));
format( string, 256, "Sуcio: %s[Socio Prata]", sendername );
SendClientMessage( playerid, COR_SOCIOP, string );
}
else if( PlayerInfo[ i ][ pSocio ] == 3 )
{
GetPlayerName( i, sendername, sizeof( sendername ));
format( string, 256, "Sуcio: %s[Socio Ouro]", sendername );
SendClientMessage( playerid, COR_SOCIOO, string );
}
else if(PlayerInfo[ i ][ pSocio ] == 4 )
{
GetPlayerName( i, sendername, sizeof( sendername ));
format( string, 256, "Sуcio: %s[Socio Diamante]", sendername );
SendClientMessage( playerid, COR_SOCIOD, string );
}
}
}
}
}
}