Admin rights!
#13

Quote:
Originally Posted by samtey
Посмотреть сообщение
Ehh Kush, the only thing I want is that the server know that I am an admin when I join the server!
Alright, since your using my tutorial you would either have to manually go into the user file and replace the value of Admin to a higher one. Or, you can create a command to give you admin.

PHP код:
CMD:makemeadmin(playeridparams[]) 

    if(
IsPlayerAdmin(playerid)) 
    { 
        
PlayerInfo[playerid][pAdmin] = 1;  
    } 
    else
    { 
        
SendClientMessage(playeridCOLOR_GREY"You are not authorized to use that command!");
    } 
    return 
1;

It would then set your value to 1, and in whatever command your using simply replace if(IsPlayerAdmin(playerid)) to if(PlayerInfo[playerid][pAdmin] == 1).
Reply


Messages In This Thread
Admin rights! - by samtey - 30.07.2011, 08:28
Re: Admin rights! - by Kush - 30.07.2011, 08:37
AW: Admin rights! - by samtey - 30.07.2011, 08:47
Re: Admin rights! - by Markx - 30.07.2011, 08:52
Re: Admin rights! - by Kush - 30.07.2011, 08:53
Re: Admin rights! - by Max_Coldheart - 30.07.2011, 08:55
AW: Admin rights! - by samtey - 30.07.2011, 08:56
Re: Admin rights! - by Double-O-Seven - 30.07.2011, 08:57
Re: Admin rights! - by Max_Coldheart - 30.07.2011, 09:00
Re: Admin rights! - by Kush - 30.07.2011, 09:00
Re: Admin rights! - by Max_Coldheart - 30.07.2011, 09:04
AW: Admin rights! - by samtey - 30.07.2011, 09:07
Re: AW: Admin rights! - by Kush - 30.07.2011, 09:12
Re: Admin rights! - by Markx - 30.07.2011, 09:19
AW: Admin rights! - by samtey - 30.07.2011, 09:19
Re: AW: Admin rights! - by Kush - 30.07.2011, 09:37
Re: AW: Admin rights! - by Markx - 30.07.2011, 10:08
AW: Re: AW: Admin rights! - by samtey - 30.07.2011, 10:22
Re: AW: Admin rights! - by Kush - 30.07.2011, 15:08

Forum Jump:


Users browsing this thread: 4 Guest(s)