HELP with Admin team
#1

i Added Admin Team But All Players Can spwan with it i want just admins with level >= 1 spawn with it can some one help me ??
Reply
#2

What you need to do is set peoples Administrator Level to 0 when they register.

pawn Код:
//somewhere in your registration system; add this.

PlayerInfo[playerid][pAdmin] = 0;
Then; when you want to make someone an administrator; you type a command /makeadmin [playerid].

Something like this:
pawn Код:
CMD:makeadmin(playerid, params[])
{
   if(IsPlayerAdmin(playerid)) //will check if the player is logged into RCON.
   {
       new targetid;
       if(sscanf(params,"ui", targetid, level)) return SCM(playerid, COLOR_HERE, "USAGE: /makeadmin [playerid/PartOfName] [level]");
       PlayerInfo[targetid][pAdmin] = level; //sets the player's admin level to the level you put it.
    }
    return 1;

}
Obviously this is a very basic command to make people admins but it's the base structure of it and you can build on it.
Reply
#3

Yea i know that i want like that

Код:
 ` if ( adminlevel[playerid] > 1 ) // Here The Probleme
     {
if(gTeam[playerid] == TEAM_ADMIN)
		{
			SetPlayerPos(playerid,224.2276, 1922.6010, 17.4020);
			SetPlayerFacingAngle(playerid,165.5696);
			SetPlayerColor(playerid,A_COLOR);
		    SetPlayerTeam(playerid,2);
		    GivePlayerWeapon(playerid,A_WEAPON,800);
		    GivePlayerWeapon(playerid,A_WEAPON2,800);
		    GivePlayerWeapon(playerid,A_WEAPON3,800);
		    SetPlayerSkin(playerid,D_SKIN);
		    SetPlayerColor(playerid,A_COLOR);
i want just admins spawn with this Team
Reply
#4

pawn Код:
`   if(adminlevel[playerid] >= 1) // Here The Probleme
    {
        if(gTeam[playerid] == TEAM_ADMIN)
        {
            SetPlayerPos(playerid,224.2276, 1922.6010, 17.4020);
            SetPlayerFacingAngle(playerid,165.5696);
            SetPlayerColor(playerid,A_COLOR);
            SetPlayerTeam(playerid,2);
            GivePlayerWeapon(playerid,A_WEAPON,800);
            GivePlayerWeapon(playerid,A_WEAPON2,800);
            GivePlayerWeapon(playerid,A_WEAPON3,800);
            SetPlayerSkin(playerid,D_SKIN);
            SetPlayerColor(playerid,A_COLOR);
        }
Is this what you want? I don't really understand what you need done hehe.

You want them to get TEAM_ADMIN if their 'adminlevel' is equal or greater than 1? Is that correct?
Reply
#5

Yes Jason can you help me ?
Reply
#6

LOL Any One can HElp With this Problem ??
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)