Is This Bug or anything else
#10

Quote:
Originally Posted by Craft.
Посмотреть сообщение
Show your /admins command or whatever is displaying the admin rank incorrectly.
Here is the code
Код:
CMD:admins( playerid, params[ ] )
{
	gsString[ 0 ] = EOS;
    new
		V
	;
    format( gsString, sizeof( gsString ), "%s"YE"Administrators:\n", gsString,CountAdmins());
    foreach( Player, i )
	{
		if ( PlayerInfo[ i ][ Level ] > 0 )
	    {
	        format( gsString, sizeof( gsString ), ""W"* %s"W"* %s(%d) "W"(%s)\n\n"YE"Very Important Players:\n", gsString, PlayerName( i ),i, PlayerInfo[ i ][ Status ],PlayerName( i ), i, PlayerInfo[ i ][ pVip ] );
	        V++;
	    }
	}
	format( gsString, sizeof( gsString ), "%s"W"Total of "YE"%d "W"admins/VIP's online!", gsString,CountAdmins());
    if ( V == 0 )
    {
		SendClientMessage( playerid, COLOR_ULTRARED, "{FF0000}GEF {7A7A7A}»{DBED15} {BABABA}There are no administrators online." );
		SendClientMessage( playerid, COLOR_ULTRARED, "{FF0000}GEF {7A7A7A}»{DBED15} {BABABA}Use /report if you suspect a player of cheating." );
    	gsString[ 0 ] = EOS;
	}


	ShowPlayerDialog( playerid, DIALOG_EMPTY, DIALOG_STYLE_MSGBOX, String_Admin( V), gsString, "Close", "" );
    return ( 1 );
}
stock CountAdmins()
{
	 new count;
	 foreach(Player,i)
	 {
	   if ( PlayerInfo[ i ][ Level ] > 0 ) count++;
	 }
	 return count;
}
Reply


Messages In This Thread
Is This Bug or anything else - by Marv123 - 18.11.2018, 01:01
Re: Is This Bug or anything else - by SonnyGamer - 18.11.2018, 01:03
Re: Is This Bug or anything else - by vikoo - 18.11.2018, 01:08
Re: Is This Bug or anything else - by Marv123 - 18.11.2018, 01:35
Re: Is This Bug or anything else - by vikoo - 18.11.2018, 02:21
Re: Is This Bug or anything else - by Marv123 - 18.11.2018, 15:01
Re: Is This Bug or anything else - by Craft. - 18.11.2018, 20:22
Re: Is This Bug or anything else - by scripter112 - 19.11.2018, 05:36
Re: Is This Bug or anything else - by Dayrion - 19.11.2018, 06:10
Re: Is This Bug or anything else - by Marv123 - 19.11.2018, 15:00

Forum Jump:


Users browsing this thread: 1 Guest(s)