07.07.2012, 01:14
pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
new PlayerNome[MAX_PLAYER_NAME], PlayerIP[16];
if(success)
{
for(new i; i < MAX_PLAYERS; i++)
{
GetPlayerIp(i, PlayerIP ,16);
if(strcmp(PlayerIP, ip))
continue;
GetPlayerName(i, PlayerNome, sizeof(PlayerNome));
if(!strcmp(PlayerNome, "Nickname", true) || !strcmp(PlayerNome, "Nickname2", true)) // Change the nickname's to your nickname.
{
SendClientMessage(i, 0xFF0000FF, "[RCON Warn]: Login Success");
}
else
{
SendClientMessage(i, 0xFF0000FF, "[RCON Warn]: Rcon Login Failed , you not owner.");
Kick(i);
}
break;
}
}
return 1;
}