How i can make me Admin???
#5

Quote:
Originally Posted by knackworst
Посмотреть сообщение
Well, you have to go into the admin script, and change the command to make someone admin into RCON admin, how to do this?
well, gimme the code of the /makeadmin command, then I quick make it that you can become admin in your server easly ; )
if(strcmp(cmd, "/makeadmin", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 4)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "[CMDINFO]: /makeadmin [playerid] [Level]");
return 1;
}
giveplayerid = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
new level = strval(tmp);
if(level < 0 || level > 4) { SendClientMessage(playerid, COLOR_RED, "[ERROR:] 0-10 = Valid Levels."); return 1; }
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
format(string, sizeof(string), "%s has made %s a server admin", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
Adminmsg(string);

format(string, sizeof(string), "%s has made you a server admin level %d, congratulations. Your commands are /admcmds (or /ah, or /acmds)", GetPlayerNameEx(playerid), level, GetPlayerNameEx(giveplayerid));
SendClientMessage(giveplayerid, COLOR_RED, string);
PlayerInfo[giveplayerid][pAdmin] = level;
return 1;
}
}
}
}
Reply


Messages In This Thread
How i can make me Admin??? - by HitmanEyE - 06.12.2010, 16:27
Re: How i can make me Admin??? - by SkizzoTrick - 06.12.2010, 16:31
Re: How i can make me Admin??? - by HitmanEyE - 06.12.2010, 16:37
Re: How i can make me Admin??? - by knackworst - 06.12.2010, 16:50
Re: How i can make me Admin??? - by HitmanEyE - 06.12.2010, 16:52
Re: How i can make me Admin??? - by HitmanEyE - 06.12.2010, 17:11
Re: How i can make me Admin??? - by SkizzoTrick - 06.12.2010, 17:13
Re: How i can make me Admin??? - by HitmanEyE - 06.12.2010, 17:21
Re: How i can make me Admin??? - by SkizzoTrick - 06.12.2010, 17:29
Re: How i can make me Admin??? - by knackworst - 06.12.2010, 17:30

Forum Jump:


Users browsing this thread: 1 Guest(s)