07.01.2012, 20:32
So far I have this
it says
PLEASE! Help me. I will +REP any one who will help me.
Thanx in advanced.
pawn Code:
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
{ new str[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(str, sizeof(str), "{37DB45}%s {FF0000}was auto-banned by {0000FF}GOD{FF0000}. Reason: {DB881A}Attepmt to hack Rcon{FF0000}.", name);
SendClientMessageToAll(0xFFFFFFFF,str);
SendClientMessage(i, 0xFFFFFFFF, "{FF0000}Wrong Password. {0xFFFFFFFF}You are automatically {FF0000}banned."); //Send a message
SendClientMessage(i, 0xFFFFFFFF, "{DB881A}Send me an e-mail at {FF0000}MGatUA{37DB45}@{FF0000}Mail{37DB45}.{FF0000}ru{DB881A} for an unban."); //Send a message
Ban(i); //They are now banned.
}
}
}
return 1;
}
Code:
C:\Users\Vlad\Desktop\WorldRP\filterscripts\rcon.pwn(177) : error 017: undefined symbol "playerid" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Thanx in advanced.