05.05.2014, 17:11
I made this so when someone logs on the rcon (/rcon login) Server owners gets a warning but when they log successfully i get Both of the warnings kinda spammy ANYONE HELP ME?
pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
format(string, sizeof(string), "{FF0000}AdmWarning{FFFF00}: %s is attempting to log on the Rcon.",sendername);
ABroadCast(COLOR_WHITE,string,100001);
if(success)
{
format(string, sizeof(string), "{FF0000}AdmWarning{FFFF00}: %s has successfully logged it on the Rcon.",sendername);
ABroadCast(COLOR_WHITE,string,100001);
}
}