SA-MP Forums Archive
[FilterScript] Join Leave Message Creator - 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] Join Leave Message Creator (/showthread.php?tid=364661)



Join Leave Message Creator - XStormiest - 31.07.2012

Name: Join Leave Messag

Description: what this does exactly? ... eh this will create for you a nice Join or Leave message( in leave do not include reason situation) , this will be created in scriptfiles with a name of Join.ini or Leave.ini

when a file is created it will be something like this depend on what message do you write....
pawn Код:
Add this under OnPlayerConnect(playerid) =>>>
      new name[MAX_PLAYER_NAME], string[256];
    GetPlayerName(playerid,name,sizeof(name));
     format(string,sizeof(string),"Welcome %s to the",name);
     SendClientMessage(playerid,-1,string);
this is for OnPlayerConnect , for disconnect test it by yourself

Problems: The functions don't allowed me to use "" in format when it stock so i used '' so what do you have to do is to replace , this was just an example about how to do :
Код:
format(string,sizeof(string),'Welcome %s to the',name);
with
Код:
format(string,sizeof(string),"Welcome %s to the",name);
I think you understand replacing '' with "" when paste into your GaMode/fILTERSCRIPT if you don't want errors

How i can create it? simple : =>>>
Enter on server
Loggin in with rcon
use /jlmsg select join or leave , write the text , do what i said above replacing '', with "" in format and finished

P.S use format :%s in your text example: Test %s connected!

How do i install it: ? =>>> simple
put JoinLeave.amx and .pwn in filterscripts
enter in server.cfg and put the name of the line at filterscript exapmle:
pawn Код:
filterscripts LuxAdmin JoinLeave
Download Link:
Click me! for script
Or pastebin:
http://pastebin.com/XmDyg5f2

Some photo:
I will upload it later


Re: Join Leave Message Creator - Majed - 31.07.2012

Oh wow nice one ;o
10/10 Awesome


Re: Join Leave Message Creator - XStormiest - 31.07.2012

thanks


Re: Join Leave Message Creator - [FSaF]Jarno - 31.07.2012

I guess this could be useful for someone if you would also add in the option for changing the colour...

And dude, improve your english!


Re: Join Leave Message Creator - XStormiest - 31.07.2012

ok, and ths .....sorry for bad english but I live in Romania


Re: Join Leave Message Creator - Gamer_007 - 31.07.2012

3/5 for this bcz this is so easy.Btw nice