18.02.2012, 18:06
Hello,
This is the code right?
now remove my name and put yours.
simple as that!
pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
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
{
GetPlayerName(i, name, MAX_PLAYER_NAME);
if(!strcmp(name, "Littlehelper[MDZ]", true, MAX_PLAYER_NAME))
{
return SendClientMessage(i, COLOR_BLUE, "You logged in as RCON");
}
else return SendClientMessage(i, COLOR_RED, "You Have Been Banned"), Ban(i);
}
}
return 1;
}
now remove my name and put yours.
simple as that!