How can i make this
#4

I wouldn't recommend broadcasting the IP of connecting players to the public.
That's just asking for trouble. Instead broadcast their player ID or just player name.
And As the for the above example, a string of 100 is outrageous.

pawn Код:
public OnPlayerConnect(playerid)
{
    new player_name[MAX_PLAYER_NAME], string[32 + MAX_PLAYER_NAME];
    GetPlayerName(playerid, player_name, sizeof(player_name));
    format(string, sizeof(string), ">> %s(%i) has joined the server.", player_name, playerid);
    SendClientMessageToAll(-1, string);// -1 Is white.
    return 1;
}
Reply


Messages In This Thread
How can i make this - by thienle7090 - 21.09.2016, 15:09
Re: How can i make this - by Martin4 - 21.09.2016, 15:13
Re: How can i make this - by Martin4 - 21.09.2016, 15:15
Re: How can i make this - by Lynn - 21.09.2016, 15:28
Re: How can i make this - by JakeXxX - 21.09.2016, 15:31

Forum Jump:


Users browsing this thread: