Help - 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: Help (
/showthread.php?tid=549887)
Help -
astanalol - 09.12.2014
Hello Guys
Today im know Y_ini How To Save
im Done Making Admins in Saving But i Want Know How To Make For Admins Ranks And SetRanks Only For Rcon Login /
To i Searching i See Big Admins System And i Cant know to its Very Big
Quote:
INI_Int("Admins",PlayerInfo[playerid][pAdmins]);
|
please Help
Thanks
Re: Help -
M4D - 09.12.2014
Hello
INI_Int will load an integer of "Admins" value from file that you opened
If you save player stats on players disconnect so you save PlayerInfo[playerid][pAdmins] variable
Make a command with strcmp or zcmd (zcmd is easier) and set admin variable to the level that you want
For example
PlayerInfo[playerid][pAdmins] = 5;
Now playerid admin level is 5
Search for making commands tutorial in forum
And read samp wiki and pawnLang.Pdf if you don't know pawn