How can i make this
#1

I try to make it's to many error.
I want that on player connect to server that will show a message to all member in the server that : Player [name of the connect player ] join the server with ip [ip of the player connect]
Reply
#2

Quote:
Originally Posted by thienle7090
Посмотреть сообщение
I try to make it's to many error.
I want that on player connect to server that will show a message to all member in the server that : Player [name of the connect player ] join the server with ip [ip of the player connect]
http://pastebin.com/tBPjj9Fe
Reply
#3

Quote:
Originally Posted by Martin4
Посмотреть сообщение
Quote:

new name[MAX_PLAYER_NAME];
new string22[100+MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
{
format(string22,sizeof string22,"server: %s[ID:%d] join the server!",name, playerid);
SendClientMessageToAll(COLOR_RED,string);
}


THIS IS BETTER
Reply
#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
#5

Quote:
Originally Posted by Lynn
Посмотреть сообщение
I wouldn't recommend broadcasting the IP of connecting players to the public.
That's just asking for trouble.
^ This. Why would you want all players to know someone's IP.
Even when you connect they can see ur IP and cause you troubles if they don't like you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)