05.05.2014, 15:41
Well i need some warnings for admins rank 100001 only who can see it cause someone is using /rcon Say i don't even know if it's /asay or /rcon say please help
i made this
worked fine but when i made this but dont get any warnings like Name is using Rcon say.
didn't get any errors but the warning isn't working when i /rcon say Hi
btw that safegmx i didn't make it i found it there but didn't really work so it's useless
i made this
pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
format(string, sizeof(string), "{FF0000}AdmWarning{FFFF00}: %s has attempted to login on the Rcon.",sendername);
ABroadCast(COLOR_WHITE,string,100001);
}
pawn Код:
public OnRconCommand(cmd[])
{
if(strcmp(cmd, "safegmx", true) == 0)
{
GameModeInitExitFunc();
return 1;
}
if(strcmp(cmd, "say", true) == 0)
{
format(string, sizeof(string), "{FF0000}AdmWarning{FFFF00}: %s is using Rcon SAY to chat" .",sendername);
ABroadCast(COLOR_WHITE,string,100001);
return 1;
}
return 0;
}
btw that safegmx i didn't make it i found it there but didn't really work so it's useless