11.06.2017, 18:18
PHP код:
public OnPlayerConnect(playerid)
{
new connected[128],plname[MAX_PLAYER_NAME],plip[MAX_PLAYER_NAME],Country[MAX_PLAYER_NAME],City[MAX_PLAYER_NAME];
GetPlayerCountry(playerid, Country, sizeof(Country));
GetPlayerCity(playerid,City, sizeof(City));
GetPlayerName(playerid, plname, sizeof(plname));
GetPlayerIp(playerid, plip, sizeof(plip));
format(connected,sizeof(connected),"{00ff00}[Join]:{0000ff}%s {ff0000}Has Joined The Server{00ffff}[{ffffff}IP:{ffff00}%s{00ffff}]{00ffff}[{ffffff}Contry:{ffff00}%s{00ffff}]{00ffff}[{fffff00}City: %s{00ffff}]",plname,plip,Country,City);
SendClientMessageToAll(playerid,connected);
return 1;
}
PHP код:
public OnPlayerConnect(playerid)
{
new connected[999],plname[MAX_PLAYER_NAME],plip[MAX_PLAYER_NAME],Country[MAX_PLAYER_NAME],City[MAX_PLAYER_NAME];
GetPlayerCountry(playerid, Country, sizeof(Country));
GetPlayerCity(playerid,City, sizeof(City));
GetPlayerName(playerid, plname, sizeof(plname));
GetPlayerIp(playerid, plip, sizeof(plip));
format(connected,sizeof(connected),"{00ff00}[Join]:{0000ff}%s {ff0000}Has Joined The Server{00ffff}[{ffffff}IP:{ffff00}%s{00ffff}]{00ffff}[{ffffff}Contry:{ffff00}%s{00ffff}]{00ffff}[{fffff00}City: %s{00ffff}]",plname,plip,Country,City);
SendClientMessageToAll(playerid,connected);
return 1;
}