Admin system
#7

man u can use the luxadmin tutorial :
Add "<ladmin> in top of your script
Then, add line to your command:
Quote:

if (IsPlayerLuxAdm(playerid))

Quote:

if(strcmp(cmd, "/godon", true) == 0)
{
if(IsPlayerLuxAdmin(playerid,1))
{
//Function Here
}
else SendClientMessage(playerid, COLOR_WHITE, "ERROR: You are not Adminstrator level 1");
SetPlayerHealth(playerid, 9999999999);
return 1;
}

that will be enouth for /godon
now /godoff
Quote:

if(strcmp(cmd, "/godoff", true) == 0)
{
if(IsPlayerLuxAdmin(playerid,1))
{
//Function Here
}
else SendClientMessage(playerid, COLOR_WHITE, "ERROR: You are not Adminstrator level 1");
SetPlayerHealth(playerid, 100);
return 1;
}

done!
Reply


Messages In This Thread
Admin system - by JusstinRoller - 09.08.2013, 13:42
Re: Admin system - by Konstantinos - 09.08.2013, 13:44
Re: Admin system - by FarCry - 09.08.2013, 13:45
Re: Admin system - by EvanA - 09.08.2013, 13:55
Re: Admin system - by JusstinRoller - 09.08.2013, 14:07
Re: Admin system - by BodyBoardVEVO - 09.08.2013, 14:27
Re: Admin system - by Napster101 - 09.08.2013, 14:32
Re: Admin system - by JusstinRoller - 09.08.2013, 14:49
Re: Admin system - by JusstinRoller - 11.08.2013, 00:06
Re: Admin system - by Dopefull - 11.08.2013, 00:31

Forum Jump:


Users browsing this thread: 1 Guest(s)