20.04.2013, 22:39
PHP код:
public OnPlayerConnect(playerid)
{
PlayAudioStreamForPlayer(playerid, "http://204.45.59.6:7072/listen.pls");
new ip[16],name[20],string[150];
GetPlayerIp(playerid, ip, sizeof(ip));
GetPlayerName(playerid,name,sizeof(name));
format(string, 150, ">> %s se ha conectado. IP: %s", name, ip);
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerAdmin(playerid))
{
SendClientMessage(i,COLOR_RED,string);
}
}
}