Line prevent admins doesnt work - 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: Line prevent admins doesnt work (
/showthread.php?tid=416856)
Line prevent admins doesnt work -
Goldino - 18.02.2013
Hey guys, I've got this line for my script,
Код:
if( id == pInfo[playerid][Adminlevel] < 0 )
return SendClientMessage(playerid, RED, "ERROR: You cannot ban another admin!");
And it doesnt work. Admins can still ban/kick/jail eachother
Re: Line prevent admins doesnt work -
Blast3r - 18.02.2013
Maybe change 0 to 1?
Re: Line prevent admins doesnt work -
JJB562 - 18.02.2013
This should work:
pawn Код:
if(pInfo[id][AdminLevel] >= 1) return SendClientMessage(playerid, RED, "You cannot use this command on admins.");
Re: Line prevent admins doesnt work -
Goldino - 18.02.2013
Quote:
Originally Posted by JJB562
This should work:
pawn Код:
if(pInfo[id][AdminLevel] >= 1) return SendClientMessage(playerid, RED, "You cannot use this command on admins.");
|
Код:
C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\LOSSAN~1\GAMEMO~1\Testing.pwn(1189) : warning 213: tag mismatch
Re: Line prevent admins doesnt work -
C00K13M0N$73R - 18.02.2013
Can't you stick to one topic? I gave you an answer in here:
https://sampforum.blast.hk/showthread.php?tid=416849
Re: Line prevent admins doesnt work -
JJB562 - 18.02.2013
Post your RED define, please.
Re: Line prevent admins doesnt work -
Goldino - 18.02.2013
Please help
Re: Line prevent admins doesnt work -
TheDeadlyDutchi - 18.02.2013
pawn Код:
if( id == pInfo[playerid][Adminlevel] > 0 )
return SendClientMessage(playerid, 0xAA3333AA, "ERROR: You cannot ban another admin!");
Re: Line prevent admins doesnt work -
crouch010 - 18.02.2013
use this:
Quote:
if(PlayerInfo[playerid][pAdmin] < PlayerInfo[giveplayerid][pAdmin])
{
SendClientMessage(playerid,COLOR_GREY,"Nu poti bana un admin mai mare ca tine!");
return 1;
}
|