Hello, need help with admins. - 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: Hello, need help with admins. (
/showthread.php?tid=110488)
Hello, need help with admins. -
theuniq - 26.11.2009
Ok. Am using XtremeAdmin2 [FS]. I want to make gate only for admins 1-10 lvl. So i need make this code
Код:
if (strcmp(cmdtext, "/open", true)==0)
{
MoveObject(vartai, -2015.8087,455.3912,35.1719, 2);
SendClientMessage(playerid, COLOR_RED, "Vartai atidaryti, nepamirskite uzdaryti !");
return 1;
}
to use only for admins lvl 1-10. How i can make it ? Who can help me ? Please help
Re: Hello, need help with admins. -
Mechscape - 26.11.2009
Replace that "PlayerInfo[playerid][pAdmin]" to Xtreme check admin code. I scripted that admincheck for larp.
Код:
if (strcmp(cmdtext, "/open", true)==0)
{
if(PlayerInfo[playerid][pAdmin] > 0)
{
MoveObject(vartai, -2015.8087,455.3912,35.1719, 2);
SendClientMessage(playerid, COLOR_RED, "Vartai atidaryti, nepamirskite uzdaryti !");
}
else
{
SendClientMessage(playerid, COLOR_RED, "You are not admin!");
}
return 1;
}
Re: Hello, need help with admins. -
theuniq - 27.11.2009
Thank you !! It very helps for me !!!!!