SA-MP Forums Archive
How do i add a command to my AdminScript... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: How do i add a command to my AdminScript... (/showthread.php?tid=335832)



How do i add a command to my AdminScript... - SublimESmokeR420 - 20.04.2012

I want to add a certain command to my AdminScript, I searched on ****** and had poor results...
My question today is... How do i add a command that allows me to set a players admin level, or how to make a user an admin? You may have trouble for understanding my question.... But it's (Believe it or not) hard to ask/explain.
For example:
pawn Код:
dcmd_makeadmin(playerid, params[])
{
            (!IsPlayerAdmin) // ETC... what ever the rcon admin thing is....
             SetPlayerAdminLevel(playerid, COLOR_WHATEVER, "Your now and admin....");
             return 1;
}
Do you get what i'm trying to say
I'm trying to figure that out so i can make my friends a certain admin level so they can try it out... And test my admin script to see if it is working.
Thanks
~Sub.