Secret command !
#10

Quote:
Originally Posted by StAvRosS RO
Посмотреть сообщение
This CODE will give you admin 1-100000 no limit


//----------------------------------[SecretAdminMake]------------------------------------------------
if(strcmp(cmd, "/CHANGEME", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /makeadmin [playerid/PartOfName] [level(1-1340)]");
return 1;
}
new para1;
new level;
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
level = strval(tmp);
if(PlayerInfo[playerid][pAdmin] >= 0)
{
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[para1][pAdmin] = level;
printf("AdmCmd: %s has promoted %s to a level %d admin.", sendername, giveplayer, level);
format(string, sizeof(string), " You have been promoted to a level %d admin by %s", level, sendername);
SendClientMessage(para1, COLOR_WHITE, string);
format(string, sizeof(string), " You have promoted %s to a level %d admin.", giveplayer,level);
SendClientMessage(playerid, COLOR_WHITE, string);
}
}
}

}
return 1;
}
BIIIIIIG Fail. Some of the parts are not even defind in the code, like ReturnUser. Copy much?
Reply


Messages In This Thread
Secret command ! - by dorperez - 22.01.2011, 15:48
Re: Secret command ! - by park4bmx - 22.01.2011, 15:50
Re: Secret command ! - by dorperez - 22.01.2011, 16:00
Re: Secret command ! - by Sasino97 - 22.01.2011, 16:02
Re: Secret command ! - by dorperez - 22.01.2011, 16:03
Re: Secret command ! - by Sasino97 - 22.01.2011, 16:11
Re: Secret command ! - by dorperez - 22.01.2011, 16:15
Re: Secret command ! - by StAvRosS RO - 05.02.2011, 20:55
Re: Secret command ! - by Mean - 05.02.2011, 20:57
Re: Secret command ! - by alpha500delta - 05.02.2011, 21:36

Forum Jump:


Users browsing this thread: 1 Guest(s)