Download Mod skin,filterscripts,gamemode,Inc file, plugin for windows or linux and more...
Thursday, October 18, 2012
Join Leave Message Creator
Name: Join Leave MessagDescription: 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....
Code:
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);
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 :
Code:
format(string,sizeof(string),'Welcome %s to the',name);
Code:
format(string,sizeof(string),"Welcome %s to the",name);
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:
Code:
filterscripts LuxAdmin JoinLeave
Download Link:
Click me! for script
Or pastebin:
http://pastebin.com/XmDyg5f2
Some photo:
I will upload it later
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment