Connecting players
#1

Hello, I have a problem with the message when the connection when I ID: 0, showing a join message in chat when I ID: 1, the message does not show where the problem may be?



Код:
public OnPlayerConnect(playerid)
{
    //_cntr_HandleLogin(playerid);
    new mess[250];
   	new Country5[20], City5[20], IP5[20];
   	
	GetPlayerCountry(playerid, Country5);
	GetPlayerCity(playerid, City5);
	GetPlayerIp(playerid,IP5,sizeof(IP5));
	
	format(mess,sizeof(mess),"{FFFF00}> %s ( %i ) se přihlбsil do hry. [IP Adresa: %s | Země: %s | Proxy: %s]",
 	RReturnPlayerName(playerid),
    playerid,
	IP5,
	Country5,
	IsPlayerUsingProxy(playerid) ? ("{FF0000}Pozitivnн{FFFF00}") : ("{FFFF00}Negativnн"));
	SendClientMessageToAll(-1, mess);
	
    GameTextForPlayer(playerid,"~r~T~w~exture ~r~S~w~tudio ~b~1.8",5000,5);
	return 1;
}
Reply
#2

pawn Код:
public OnPlayerConnect(playerid) {

    new
        mess[256];
       
    new
        country[24],
        ip[16];
       
    GetPlayerCountry(playerid, country);
    GetPlayerIp(playerid, ip, sizeof(ip));
   
    format(mess, sizeof(mess), "{FFFF00}> %s ( %i ) se přihlбsil do hry. [IP Adresa: %s | Země: %s | Proxy: %s]", RReturnPlayerName(playerid), playerid, ip, country, IsPlayerUsingProxy(playerid) ? ("{FF0000}Pozitivnн{FFFF00}") : ("{FFFF00}Negativnн"));
    SendClientMessageToAll(-1, mess);
   
    GameTextForPlayer(playerid,"~r~T~w~exture ~r~S~w~tudio ~b~1.8",5000,5);
   
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)