09.03.2017, 19:24
hey im using that command im my filterscript
-- Here |IS Gamemode admin level --
How can i get AdminLevel And Logincheck from Gamemode And use that command in filterscript
-- Here |IS Gamemode admin level --
PHP код:
#define PATH "/Users/%s.ini"
enum pEnum
{
Pass,
pRegistered,
pLogged,
Logged,
AdminLevel, //User's admin level
Donator
}
new pInfo[MAX_PLAYERS][pEnum];
PHP код:
CMD:ainteriors(playerid,params[])
{
if(LoginCheck[playerid] == 0) return SendClientMessage(playerid, COLOR_RED, ""ERROR_MESSAGE"");
if(pInfo[playerid][AdminLevel] < 1) return SendClientMessage(playerid, COLOR_RED, ""ERROR_MESSAGE"");
else
{
new dialog_string[2600];
for(new i = 0; i < sizeof(InteriorDialogNames); i++)
{
if(!i)
{
format(dialog_string, sizeof(dialog_string), InteriorDialogNames[i]);
}
else
{
format(dialog_string, sizeof(dialog_string), "%s\n%s", dialog_string, InteriorDialogNames[i]);
}
}
ShowPlayerDialog(playerid, DIALOG_INTERIOR_MENU, DIALOG_STYLE_LIST, "Interiors Teleport Dialog", dialog_string, "Select", "Cancel");
}
return 1;
}