SA-MP Forums Archive
Little bit 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: Little bit help (/showthread.php?tid=347924)



Little bit help - Chris1337 - 03.06.2012

i made this command , i dont know if works , i define the admins on my FS , i want to test if work like that

pawn Код:
command(adminlogin , playerid, params[])
{
    {
        new pname[MAX_PLAYER_NAME], string[256];
        GetPlayerName(playerid, pname, sizeof(pname));
        #if ADMINS != pname
        format(string, 256, "{00FF00}Liz:{FFFFFF} %s(%d). Has tried to Log In As An Admin : ", pname);
        AChat(AC, string, 1);
        #endif
        #if ADMINS == pname
        SInfo[playerid][pAdmin] = 3;
        format(string, 256, "{00FF00}Liz:{FFFFFF} %s(%d). Logged In As An Admin Level :", pname, SInfo[playerid][pAdmin]);
        AChat(AC, string, 1);
        #endif
    }
    return 1;
}