Problem with admin commands [/level /ban]
#2

/level problems
Quote:

format(str,sizeof(str),"Succes, Admin level %d has granted to you by Admin %s.",aname);//message to player
format(str,sizeof(str),"Succes, you have succesfully set %s's level granted to %d.",aname);//message to admin
SendClientMessage(id,COLOR_YELLOW,str);

to
pawn Код:
format(str,sizeof(str),"Succes, Admin level %d has granted to you by Admin %s.",level,aname);//message to player
SendClientMessage(id,COLOR_YELLOW,str);
GetPlayerName(id,aname,sizeof(aname));
format(str,sizeof(str),"Succes, you have succesfully set %s's level granted to %d.",aname,level);//message to admin
SendClientMessage(playerid,COLOR_YELLOW,str);
Ban problems
Quote:

string[128]

to
pawn Код:
string[MAX_PLAYER_NAME*2+256+36]; // I made this by using size of tmps. You can make it smaller. But, then make tmps also smaller.256=tmp
Quote:

format(string,sizeof(string),"%s has been banned by Admin %s [Reason: %s]",pn,aname,params[2]);

to
pawn Код:
format(string,sizeof(string),"%s has been banned by Admin %s [Reason: %s]",pn,aname,tmp2);
EDIT: /level problems edited 2 times
Reply


Messages In This Thread
Problem with admin commands [/level /ban] - by mickos - 02.08.2012, 17:47
Re: Problem with admin commands [/level /ban] - by Roko_foko - 02.08.2012, 18:12
Re: Problem with admin commands [/level /ban] - by mickos - 02.08.2012, 18:20

Forum Jump:


Users browsing this thread: 2 Guest(s)