18.03.2012, 06:14
Hello,
Im scripting a adminhq for my server. But i want ONLY regular administrators allowed not only RCON.
This is what i have. Only work if im logged in as RCON. But i want it to work with regular admins.
p.s- Im using LuxAdmin
This is my code.
Im scripting a adminhq for my server. But i want ONLY regular administrators allowed not only RCON.
This is what i have. Only work if im logged in as RCON. But i want it to work with regular admins.
p.s- Im using LuxAdmin
This is my code.
Код:
if(strcmp(cmdtext,"/adminhq",true)==0)
{
if(!IsPlayerAdmin(playerid)) return 1;
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-1201.8862,-1000.5042,128.9680);
GameTextForPlayer(playerid,"~g~Admin ~r~House ~p~!!!",4000,6);
new string[256], pname[MAX_PLAYER_NAME];
return 1;
}



