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(playeridCOLOR_RED""ERROR_MESSAGE"");
    if(
pInfo[playerid][AdminLevel] < 1) return SendClientMessage(playeridCOLOR_RED""ERROR_MESSAGE"");
    else
    {
         new 
dialog_string[2600];
        for(new 
0sizeof(InteriorDialogNames); i++)
        {
             if(!
i)
             {
                
format(dialog_stringsizeof(dialog_string), InteriorDialogNames[i]);
            }
            else
            {
            
format(dialog_stringsizeof(dialog_string), "%s\n%s"dialog_stringInteriorDialogNames[i]);
            }
        }
        
ShowPlayerDialog(playeridDIALOG_INTERIOR_MENUDIALOG_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)