03.06.2012, 16:05
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;
}