Actual Admin ranks! - 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: Actual Admin ranks! (
/showthread.php?tid=536924)
Actual Admin ranks! -
MrCallum - 12.09.2014
Hello, I have got my /makeadmin Command - Non - MYSQL and it works but i need the actual ranks to be sort-en out!
Could someone help me?
Код:
enum PlayerInfo
{
Pass[129],
pAdmin,
pMod,
pMoney,
pLevels
}
Enum^
Re: Actual Admin ranks! -
SickAttack - 12.09.2014
The ranks are set by you. What that means is that you must define them.
Re: Actual Admin ranks! -
MrCallum - 12.09.2014
How do i do this?
_________________________________
Skype: E.r.r.y
Re: Actual Admin ranks! -
SickAttack - 12.09.2014
pawn Код:
stock GetAdminRank(playerid)
{
new string[15];
switch(PlayerInfo[playerid][pAdmin])
{
case 1: format(string, sizeof(string), "Moderator");
case 2: format(string, sizeof(string), "Junior Admin");
// etc.
}
return string;
}