SA-MP Forums Archive
Get admin level help - 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)
+--- Thread: Get admin level help (/showthread.php?tid=630134)



Get admin level help - JuzDoiT - 09.03.2017

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;




Re: Get admin level help - RyderX - 09.03.2017

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


Re: Get admin level help - oMa37 - 09.03.2017

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