Simple help. OnRconLoginAttemp - 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: Simple help. OnRconLoginAttemp (
/showthread.php?tid=415525)
Simple help. OnRconLoginAttemp -
PabloDiCostanzo - 13.02.2013
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?
Re: Simple help. OnRconLoginAttemp -
S0n1COwnsYou - 13.02.2013
try this,
PHP код:
SendClientMessage(i, 0xFF0000FF, "You has been banned, REASON: Attemp to log in the rcon, you can make a Ban Appeal in ranchohippie.createaforum.com");
Re: Simple help. OnRconLoginAttemp -
PabloDiCostanzo - 13.02.2013
Quote:
Originally Posted by S0n1COwnsYou
try this,
SendClientMessage(i, 0xFF0000FF, "You has been banned, REASON: Attemp to log in the rcon, you can make a Ban Appeal in ranchohippie.createaforum.com");
|
Doesenґt work :P. I mean,m itґs the same. Give the ban in "white" color. And I want it in "red"
Re: Simple help. OnRconLoginAttemp -
Shabi RoxX - 13.02.2013
here you go
pawn Код:
#define C_RED 0xD20202FF
SendClientMessage(i,C_RED, "You has been banned, REASON: Attemp to log in the rcon, you can make a Ban Appeal in ranchohippie.createaforum.com"); //Send a message
Re: Simple help. OnRconLoginAttemp -
LetsOWN[PL] - 13.02.2013
Hi,
what about this?
pawn Код:
SendClientMessage(i, 0xFFFFFFFF, "{FF0000}You has been banned, REASON: Attemp to log in the rcon, you can make a Ban Appeal in ranchohippie.createaforum.com"); //Send a message
Greetz,
LetsOWN
Re: Simple help. OnRconLoginAttemp -
S0n1COwnsYou - 13.02.2013
Quote:
Originally Posted by LetsOWN[PL]
Hi,
what about this?
pawn Код:
SendClientMessage(i, 0xFFFFFFFF, "{FF0000}You has been banned, REASON: Attemp to log in the rcon, you can make a Ban Appeal in ranchohippie.createaforum.com"); //Send a message
Greetz,
LetsOWN
|
That Will Make it White...
Re: Simple help. OnRconLoginAttemp -
LetsOWN[PL] - 13.02.2013
Quote:
Originally Posted by S0n1COwnsYou
That Will Make it White...
|
Really?
Re: Simple help. OnRconLoginAttemp -
PabloDiCostanzo - 13.02.2013
Quote:
Originally Posted by Shabi RoxX
here you go
pawn Код:
#define C_RED 0xD20202FF SendClientMessage(i,C_RED, "You has been banned, REASON: Attemp to log in the rcon, you can make a Ban Appeal in ranchohippie.createaforum.com"); //Send a message
|
Script [gamemode/....] Run time error 20: Invalid index parameter <Bad (cant read what say here) point)