How can i make this - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How can i make this (
/showthread.php?tid=617451)
How can i make this -
thienle7090 - 21.09.2016
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]
Re: How can i make this -
Martin4 - 21.09.2016
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
Re: How can i make this -
Martin4 - 21.09.2016
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
Re: How can i make this -
Lynn - 21.09.2016
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;
}
Re: How can i make this -
JakeXxX - 21.09.2016
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.