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;
}
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;
}
SendClientMessageToAll(playerid,connected);
SendClientMessageToAll(-1,connected);
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
public OnPlayerConnect(playerid)
{
new connected[256],plname[MAX_PLAYER_NAME],plip[126],Country[126],City[126];
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(0xFF0000FF,connected);
return 1;
}
PHP код:
|
public OnPlayerConnect(playerid) { new connected[256],plname[MAX_PLAYER_NAME],plip[126],Country[126],City[126]; 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(0xFF0000FF,connected); return 1; }
hhhhhhhh that is not the prob because
PHP код:
|
SendClientMessageToAll(0xFF0000FF, "Red");
SendClientMessageToAll(playerid, connected); //connected is ok but playerid is wrong it will send the message with the color of the playerid id wich is 0-1000 depends on your server max and that why you dont see the message because the color is invalid
SendClientMessageToAll(playerid, connected); this is not how you use SendClientMessageToAll
SendClientMessageToAll(color, const message[]); example: PHP код:
PHP код:
|