22.09.2013, 13:01
My friend was having the same problem so I found a solution for him and I can share it with you also , so you are using United RP Gamemode , open the gamemode then CTRL + F (Find) search for
You will find something called
So we will add simple thing to that code.
So our code will be
You just have to replace Your Name with your Name IG
For example if your name is Denniser_BLABLA
So we our code will be like that :
That's mean only Admin Level 99999 and the player with the name of Denniser_BLABLA can only use /makeadmin , you can make yourself admin then you can remove that function and make it only for admin level 99999 again.
Done
PHP код:
/makeadmin
PHP код:
if(PlayerInfo[playerid][pAdmin] >= 99999
PHP код:
strcmp(sendername, "Your Name", true) == 0) //Write your name instead of Your Name.
PHP код:
if(PlayerInfo[playerid][pAdmin] >= 99999 || strcmp(sendername, "Your Name", true) == 0)
For example if your name is Denniser_BLABLA
So we our code will be like that :
PHP код:
if(PlayerInfo[playerid][pAdmin] >= 99999 || strcmp(sendername, "Denniser_BLABLA", true) == 0)
Done