12.02.2011, 17:58
How will i make an /admins system? This are some code
adminlevel[playerid]
if(adminlevel[playerid] == 4)
adminlevel[playerid]
if(adminlevel[playerid] == 4)
CMD:admins( playerid, params[ ] )
{
new c = 0;
SendClientMessage( playerid, 0xAAAAAA, "Current administrators online: " );
for( new i = 0; i < MAX_PLAYERS; i++ )
{
if( adminlevel[ i ] >= 1 )
{
c++;
new string[ 128 ];
new pName[ MAX_PLAYER_NAME ];
GetPlayerName( i, pName, sizeof pName );
format( string, sizeof string, "Level: %d, Admin: %s", adminlevel[ i ], pName );
SendClientMessage( playerid, 0xAAAAAA, string );
}
}
if( c == 0 ) SendClientMessage( playerid, 0xAAAAAA, "No administrators online" );
return 1;
}