SA-MP Forums Archive
possible? - 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: possible? (/showthread.php?tid=476668)



possible? - Joe_Goro - 19.11.2013

is it possible ?
with pAdminDuty = 0
player get admin level 1
if admin duty 1
he gets his original admin level?
as he checks first if he is admin or no

isit possible? how?


Re: possible? - Krakuski - 19.11.2013

It is possible. Inside of your command where it makes the admin go off duty (pAdminDuty = 0), just put the function under that.

Example:

pawn Код:
pAdminDuty = 0
SetPlayerAdminLevel(playerid, 1);
Just a reminder, this is just an example, it probably wont work in your script.


Re: possible? - Joe_Goro - 19.11.2013

okay but how to back his level after aduty 1??


Re: possible? - Lajko1 - 19.11.2013

If you have admin system his admin level is saved, so just make
pawn Код:
If(pAdminDuty[playerid] == 1)
{
    // load player's admin level here
}



Re: possible? - Joe_Goro - 21.11.2013

okay thanks i will try and reply