21.02.2012, 13:46
Hello,
To the guy above me.
You can take this as an example..
To the guy above me.
Код:
public OnRconLoginAttempt(ip[], password[], success) { new pip[16]; for(new i=0; i<MAX_PLAYERS; i++) { GetPlayerIp(i, pip, sizeof(pip)); if(!strcmp(ip, pip, true)) { 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; }