Simple help. OnRconLoginAttemp
#1

I have this pawn code

Quote:

#include <a_samp>

public OnRconLoginAttempt(ip[], password[], success)
{
if(!success) //If the password was incorrect
{
printf("FAILED RCON LOGIN BY IP %s USING PASSWORD %s",ip, password);
new pip[16];
for(new i=0; i<MAX_PLAYERS; i++) //Loop through all players
{
GetPlayerIp(i, pip, sizeof(pip));
if(!strcmp(ip, pip, true)) //If a player's IP is the IP that failed the login
{
SendClientMessage(i, 0xFF0000, "You has been banned, REASON: Attemp to log in the rcon, you can make a Ban Appeal in ranchohippie.createaforum.com"); //Send a message
Ban(i); //They are now banned.
}
}
}
return 1;
}

I want this message in "red" color as you can see, but when I try to change it to "red" with all ways, it fail.

Anyone can help me with this?
Reply


Messages In This Thread
Simple help. OnRconLoginAttemp - by PabloDiCostanzo - 13.02.2013, 16:28
Re: Simple help. OnRconLoginAttemp - by S0n1COwnsYou - 13.02.2013, 16:30
Re: Simple help. OnRconLoginAttemp - by PabloDiCostanzo - 13.02.2013, 16:46
Re: Simple help. OnRconLoginAttemp - by Shabi RoxX - 13.02.2013, 16:56
Re: Simple help. OnRconLoginAttemp - by LetsOWN[PL] - 13.02.2013, 16:58
Re: Simple help. OnRconLoginAttemp - by S0n1COwnsYou - 13.02.2013, 17:02
Re: Simple help. OnRconLoginAttemp - by LetsOWN[PL] - 13.02.2013, 17:19
Re: Simple help. OnRconLoginAttemp - by PabloDiCostanzo - 13.02.2013, 17:25

Forum Jump:


Users browsing this thread: 1 Guest(s)