need help with /makeadmin cmd
#1

when i try to use /makeadmin command on my server it doesnt do anything...look at this pawno script
if(strcmp(cmd, "/makeadmin", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 9999
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /makeadmin [playerid/PartOfName] [level]");
return 1;
}
new para1;
new level;
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
level = strvalEx(tmp);
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_LIGHTBLUE, string);
format(string, sizeof(string), " You have promoted %s to a level %d admin.", giveplayer,level);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
}
}
}
return 1;
}
Reply


Messages In This Thread
need help with /makeadmin cmd - by PheonixButcher - 25.04.2011, 13:47
Re: need help with /makeadmin cmd - by Max_Coldheart - 25.04.2011, 13:54
Re: need help with /makeadmin cmd - by PheonixButcher - 25.04.2011, 13:55
Re: need help with /makeadmin cmd - by PheonixButcher - 25.04.2011, 14:12
Re: need help with /makeadmin cmd - by TeamPublic - 25.04.2011, 14:17
Re: need help with /makeadmin cmd - by PheonixButcher - 25.04.2011, 14:20
Re: need help with /makeadmin cmd - by TeamPublic - 25.04.2011, 14:22
Re: need help with /makeadmin cmd - by PheonixButcher - 25.04.2011, 14:26
Re: need help with /makeadmin cmd - by PheonixButcher - 25.04.2011, 14:31
Re: need help with /makeadmin cmd - by TeamPublic - 25.04.2011, 14:38

Forum Jump:


Users browsing this thread: 2 Guest(s)