[FilterScript] [FS]Welcome Message - 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: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] [FS]Welcome Message (
/showthread.php?tid=187612)
[FS]Welcome Message -
Devil001 - 03.11.2010
Hello
it's simple System
When player connect it Says Welcome to : <player name>
here is the Pastbin :
http://pastebin.com/xrtXFQZw
I hope you gone like it.
Best regards.
Re: [FS]Welcome Message -
Kwarde - 03.11.2010
Nice filterscript for a first script. (I just guess that this is your first filterscript, am I right?)
But please note that now only the connected player will see: "Welcome to : PLAYERNAME"
To send an message to ALL the players, use "SendClientMessageToAll(color, message[])", so "SendClientMessageToAll(COLOR_GREEN, string)"
Re: [FS]Welcome Message -
Las Venturas CNR - 04.11.2010
Sorta looks like an edited version of the demo here:
https://sampwiki.blast.hk/wiki/OnPlayerConnect
Re: [FS]Welcome Message -
dark_clown - 04.11.2010
true, but anyways if its your first release fw good work
its easy let me write it
new pName[MAX_PLAYERS_NAME],string[100];
format(string,sizeof(string),"welcome to %s",pName);
SendClientMessageToAll(anycolor,string);
just wrote it my self
but...
Re: [FS]Welcome Message -
SampStunta - 04.11.2010
If you used the one that they just made (the poster not dark_clown) it wouldn't format the text to EVERYONE but only the person that just joined because they used SendClientMessage instead of SendClientMessageToAll
Re: [FS]Welcome Message -
hadzx - 04.11.2010
uhhm put this
Код:
#define COLOR_GREEN 0x228B22FF
and
Код:
public OnPlayerConnect(playerid)
{
new string[256];
new playerName[24];
GetPlayerName(playerid,playerName,24);
format(string,sizeof(string),"Welcome to : %s",playerName);
SendClientMessage(playerid,COLOR_GREEN,string);
return 1;
}
Re: [FS]Welcome Message -
sjvt - 04.11.2010
WTF string 256 for this? lawl.