01.11.2009, 13:12
If you want to do it ZeeX's way then here you go:
pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
if(success)
{
new pip[16];
for(new i=0; i<MAX_PLAYERS; i++)
{
GetPlayerIp(i, pip, sizeof(pip));
if(!strcmp(ip, pip, true))
{
SetPlayerColor(i, 0xFFCC00AA);
new name[24], string[64];
GetPlayerName(i, name, 24);
format(string, sizeof(string), "~r~Admin ~w~%s ~r~is in game!", name);
GameTextForAll(string, 5000, 3);
return 1;
}
}
}
return 1;
}