Get admin level help
#1

hey im using that command im my 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]; 
How can i get AdminLevel And Logincheck from Gamemode And use that command in filterscript
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;
} 
Reply
#2

You have to copy Script's variables from GM to fs and it will work
Reply
#3

https://sampwiki.blast.hk/wiki/CallRemoteFunction
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)