Need help regarding /admins and few other stuffs. [rep]
#1

So Firstly, The /admins.
When a player types in /admins, The online admins are shown but, Even tho an admin level is 2, It is shown as 5. 5 is the max. admin level. Example:

Raymond promotes John to level 2 admin. Player 1, Checks the admins online with the command /admins, He sees that John is level 5 even though his real level is 2. Although, John has access only to level 2 admin commands.

Here is the /admins code:
Код HTML:
COMMAND:admins(playerid, params[])
{
	new str[128];
	SendClientMessage(playerid, WHITE, "-------------------------");
	SendClientMessage(playerid, RED, "Online Admins:");
	for(new i = 0; i < MAX_PLAYERS; i++)
    {
		if(IsPlayerConnected(i) && PlayerStat[i][AdminLevel] >= 1)
		{
            format(str, sizeof(str), "%s, Level %d admin.", GetOOCName(i), PlayerStat[playerid][AdminLevel]);
            SendClientMessage(playerid, RED, str);
        }
    }
    SendClientMessage(playerid, WHITE, "-------------------------");
    return 1;
}
==============================================


I need a small script where when a player presses "F" key to enter or exit a door, It should freeze the Player for a few secs for the Interior to load. Since I use a custom mapped Prison, It takes a while for the players to get the map loaded. Usually players fall down.


PS: I'm kindda new to scripting, So a detailed answer would help me alot.
Reply


Messages In This Thread
Need help regarding /admins and few other stuffs. [rep] - by [UE]Milan - 01.11.2015, 07:30
Re: Need help regarding /admins and few other stuffs. [rep] - by itsCody - 01.11.2015, 07:40
Re: Need help regarding /admins and few other stuffs. [rep] - by jlalt - 01.11.2015, 08:04

Forum Jump:


Users browsing this thread: 1 Guest(s)