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)
+--- Thread: Help. (
/showthread.php?tid=409370)
Help. -
REVO-RP - 21.01.2013
I need help making level 10 admin not ban another level 10 admin as my co owner banned me for a test and i would like that level 10 admins cant ban level 10 admins i tried multiple times im also new to scripting so im kinda shitty at scripting so please help me
Re: Help. -
Infinity90 - 21.01.2013
Add this in your ban command
pawn Код:
if(PlayerInfo[playerid][pAdmin] == PlayerInfo[id][pAdmin]) return SendClientMessage(playerid,-2,"You can't ban another admin your level!");
put that below your sscanf code or whatever your using
AW: Help. -
Harry :) - 21.01.2013
however it's defined on the ban command here's an example:
PHP код:
if(AdminLevel[giveplayerid] == 10) return SendClientMessage(playerid,0xFF00FFFF,"You can't ban this Admin!");
you have to take your definition of adminlevel and put it after the "new giveplayerid;" if you used giveplayerid.
Re: Help. -
REVO-RP - 21.01.2013
arr my compiler wont work it crashes.
AW: Help. -
Blackazur - 21.01.2013
Give us the Command, without Code we can't do anything.
Re: AW: Help. -
REVO-RP - 21.01.2013
Quote:
Originally Posted by Blackazur
Give us the Command, without Code we can't do anything.
|
what? its something im trying to add not something im having a error with its just when i add it its not IG he can still ban me
Re: Help. -
REVO-RP - 21.01.2013
Quote:
Originally Posted by Infinity90
Add this in your ban command
pawn Код:
if(PlayerInfo[playerid][pAdmin] == PlayerInfo[id][pAdmin]) return SendClientMessage(playerid,-2,"You can't ban another admin your level!");
put that below your sscanf code or whatever your using
|
i got one error
C:\Users\andy.isam-PC\Desktop\SERVER\gamemodes\PS-RP.pwn(16780) : error 033: array must be indexed (variable "PlayerInfo")
here is from 16780
pawn Код:
if(PlayerInfo[playerid][pAdmin] == PlayerInfo [pAdmin])
Re: Help. -
DaRk_RaiN - 21.01.2013
Post your /ban command code.
Re: Help. -
REVO-RP - 21.01.2013
Quote:
Originally Posted by DaRk_RaiN
Post your /ban command code.
|
pawn Код:
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /ban [playerid/PartOfName] [reason]");
return 1;
}
if(PlayerInfo[playerid][pAdmin] == PlayerInfo [pAdmin])
{
Re: Help. -
DaRk_RaiN - 21.01.2013
Dude the whole command code.