#1

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
Reply
#2

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
Reply
#3

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.
Reply
#4

arr my compiler wont work it crashes.
Reply
#5

Give us the Command, without Code we can't do anything.
Reply
#6

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
Reply
#7

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])
Reply
#8

Post your /ban command code.
Reply
#9

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])
                        {
Reply
#10

Dude the whole command code.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)