[FilterScript] Join Leave Message Creator
#1

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
Reply
#2

Oh wow nice one ;o
10/10 Awesome
Reply
#3

thanks
Reply
#4

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!
Reply
#5

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)