2 questions >.< about LuxAdmin - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: 2 questions >.< about LuxAdmin (
/showthread.php?tid=161869)
2 questions >.< about LuxAdmin -
HardstylerNiko - 21.07.2010
Hey guys,
i have 2 questions about scripting:
1.: I added a map, but i don't know how to script it, that only admins level 4 and higher can tele there. it's an event map >.<
2.: i don't know how to add more admins at LuxAdmin. I want 8 Admin levels, not 5... please help
Re: 2 questions >.< about LuxAdmin -
Яσскѕтая - 21.07.2010
Just go through the script to change the levels.
And for the map just do like this:
pawn Код:
// This is using RCON admin, change it to LAdmin.
if(!strcmp(cmdtext, "/goto", true, 3))
{
if(IsPlayerAdmin(playerid))
{
SetPlayerPos(........);
}
else
{
SendClientMessage(playerid, COLOR, "ERROR: You are not allowed to teleport there.");
}
}