Admins immunity - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Admins immunity (
/showthread.php?tid=121358)
Admins immunity -
tavos - 16.01.2010
Hi guys , this is my first request , i need a edited command , its's about /ban cmd.
I need you to edit /ban cmd as an admin is trying to ban another admin ,this will recive the following message , You cannot ban another admin, reject command , and show the following message to all admins "(admin name) has tryed to ban (admin name)".I hope u guys can help me.Thx a lot.Sry for bad english
Re: Admins immunity -
MadeMan - 16.01.2010
Post your /ban command.
Re: Admins immunity -
~Dangun! - 16.01.2010
pawn Код:
if(!IsPlayerConnected(banid) || banid == INVALID_PLAYER_ID || banid == playerid || pInfo[banid][level] == 3)return SendMsg(playerid,5000,"ERROR: Player is not connected or it is yourself or it is the highest admin level");
I am using this code,
Re: Admins immunity -
Sascha - 17.01.2010
if(pInfo[banid][level] == 3){
new pname[MAX_PLAYER_NAME], string[256];
GetPlayerName(playerid,pname,sizeof(pname));
format(string, sizeof(string), "Note: %s has tried to ban you", pname);
SendClientMessage(banid,COLOR_WHITE, string);
}
Re: Admins immunity -
tavos - 04.02.2010
thx a lot