Tessék
public OnPlayerConnect(playerid)
{
new
MaxPlayers = GetMaxPlayers(),
string[144],
IP[16];
GetPlayerIp(playerid, IP, sizeof IP);
format(string, sizeof string, \"{1100ff}Felhasználó: {ff3300}%s {1100ff}Csatlakozott a szerverhez {ff5100}| Ország: %s|\", pName(playerid), GetIpCountry(IP));
for(new p; p < MaxPlayers; p++)
{
if(!IsPlayerConnected(p) || p == playerid) continue;
SendClientMessage(p, 0xff5100AA, string);
}
format(string, sizeof string, \" %s Azonosító: %s |\", string, IP);
SendClientMessage(playerid, 0xff5100AA, string);
return 1;
}