please help - 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: please help (
/showthread.php?tid=222110)
please help -
xir - 06.02.2011
can anyone help me to make something which is immune when a low level does a command to a high level? example when a lvl 1 slaps a lvl 1 it will work, but a lvl 1 cant slap lvl 2??
I tried to look on many admin scripts but i cannot figure it out
here is my admin varibale
pawn Код:
PlayerInfo[playerid][pAdminLevel]
and I have this funtion "MessageToAdmins" can you also help me when they do the command and it fails it will send message to admins like
"Admin %s tried slapped high admin level %s"
Re: please help -
Fj0rtizFredde - 06.02.2011
Add something like this to you cmds
pawn Код:
if(PlayerInfo[THETARGET][pAdminLevel] > PlayerInfo[playerid][pAdminLevel]) return SendClientMessage(playerid, -1, "You cant do this to an Admin with higher level than you have!");
Re: please help -
xir - 06.02.2011
instead of sendclientmessage how can I make it work so it sends to admins? this
Re: please help -
xir - 07.02.2011
bump