LuxAdmin Need Help
#1

Hi use LuxAdmin but I changed the Levels

Level 1 = Normal Player (non-Admin)
Level 2 = Trusted Player (non-Admin)
Level 3 = Admin
.
.
.

Now If I use the Admin chat Level 1 and Level 2 Player can read Admin Chat I want to change MessageToAdmins if the player is Level 3+

This is the Admin Chat :

Quote:

if(text[0] == '#' && AccInfo[playerid][Level] >= 3)
{
new string[128]; GetPlayerName(playerid,string,sizeof(string));
format(string,sizeof(string),"Admin Chat: %s: %s",string,text[1]);
if(AccInfo[playerid][Level] >= 3) //I try this but dont work..
{
MessageToAdmins(green,string);
}
#if ADM_CHAT_LOG == true
SaveIn("AdmChatLog",string);
#endif
return 0;
}

The stock:

Quote:

stock SendCommandToAdmins(playerid,command[])
{
if(ServerInfo[AdminCmdMsg] == 0)
return 1;

new string[128];
GetPlayerName(playerid,string,sizeof(string));
format(string,sizeof(string),"(ADM) '%s' (Level: %d) | Command: %s",string,AccInfo[playerid [Level],command);

return MessageToAdmins(blue,string);
}

This is the Admin Level :

Quote:

if(AccInfo[playerid][Level] >= 3)

CAN SOMEONE HELP ME MAYBE WITH TEAMVIEWER

ONLY ADMIN LEVEL 3+ IS ALLOW FOR MessageToAdmin
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)