SA-MP Forums Archive
Check if he/she is higher level - 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: Check if he/she is higher level (/showthread.php?tid=428667)



Check if he/she is higher level - Zex Tan - 06.04.2013

Hello, I'm having trouble with my scripts, Was just trying to create a "get" command. So, how can I disable admin the is lower to get an admin is higher than he/she.

Something like this,
pawn Код:
if(id ==
Whats is the next code ? Help please.


Re: Check if he/she is higher level - RajatPawar - 06.04.2013

pawn Код:
CMD:get(playerid, params[])
{
    new targetid;
    if(!isnull...
    {
        if( My_Admin_Variable[ targetid ] > My_Admin_Variable[ playerid ] ) return SendClientMessage( "No." );



Re: Check if he/she is higher level - Zex Tan - 07.04.2013

Quote:
Originally Posted by Rajat_Pawar
Посмотреть сообщение
pawn Код:
CMD:get(playerid, params[])
{
    new targetid;
    if(!isnull...
    {
        if( My_Admin_Variable[ targetid ] > My_Admin_Variable[ playerid ] ) return SendClientMessage( "No." );
O... Thanks Rajat.

I lol'ed at this
pawn Код:
SendClientMessage( "No." );
xD