SA-MP Forums Archive
LuxAdmin Need 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: LuxAdmin Need Help (/showthread.php?tid=498169)



LuxAdmin Need Help - AwokenNeoX - 02.03.2014

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