SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 23/08/2011, 12:00 PM   #1
leingod
Big Clucker
 
leingod's Avatar
 
Join Date: Mar 2011
Location: Indonesia, Balikpapan
Posts: 127
Reputation: 4
Default [Inc] Leingod's TextDraw Message Box UPDATED!

Le-TextDraw Message Box


Introduction:
Code:
This  is TextDraw Message Box that will show you 
player connect / disconnect / or your own message to show.
Credits:
Code:
-Me for make this.
-Sandra18[NL] I got little code from him.
-[MWR]Blood Helping me.
Bugs:
Code:
PM me if you found any bugs
Downloads:
Changelog:
Code:
-v.1.0
*Script Released

-v.2.0
*Added command to show / hide the messagebox
/showbox /hidebox

-v.3.0
*Removed show / hide command (BECAUSE BUGGED) maybe fixed on ver 4.0
*Added simple function to add Text Draw message (Thanks to [MWR]Blood)
*Added include version
*Clean script
Warning!
Code:
The command is using zcmd include Click here to download zcmd

Picts:


Ask me for further information..

How To Install:
Code:
FilterScript version:

1.Copy the code from download link below
2.Paste it on pawn compiler
3.Save as lemessage.pwn or what ever you want, then compile...
4.Add to your filterscript line on server.cfg
example= filterscript script1 script2 lemessage
5.Run your server and enjoy....

Include version:

1.Copy The code from download link below
2.Paste it on notepad / notepad++ / your own text editor
3.Save as lemessage.inc or what ever you want.. 
4.Open your filterscript / gamemode
5.Insert #include <lemessage> under the #include <a_samp>
6.Insert this call back:

LeTextDrawInit(); Under OnGameModeInit / OnFilterScriptInit
LeTextDrawExit(); Under OnGameModeExit / OnFilterScriptExit
LeTextDrawConnect(playerid); Under OnPlayerConnect
LeTextDrawDisconnect(playerid); Under OnPlayerDisconnect

7.Then add your own text draw message using SendLeMessage(playerid, text);
You can see the example under How to add new message:
How to add new message:
Code:
SendLeMessage(playerid, "blablablabla bla blabal balbalbala");

or

new string[128], playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername);
format(string, sizeof(string),"player %s is so stink", playername);
SendLeMessage(playerid, string);
__________________
Quote:
Whenever you're feeling down, desperate, just remember you were the fastest sperm!
[FilterScript]
Leingod's Team Chooser System. v.1.0
Leingod's TextDraw Message Box

[Include]
Leingod's TextDraw Message Box

Last edited by leingod; 25/01/2012 at 06:42 AM.
leingod is offline   Reply With Quote
Old 23/08/2011, 12:04 PM   #2
Rock_Ro
Huge Clucker
 
Join Date: Mar 2011
Location: Los Santos
Posts: 281
Reputation: 2
Default Re: Leingod's Simple MessageBox v.1.0

Photos or something?
Rock_Ro is offline   Reply With Quote
Old 23/08/2011, 12:12 PM   #3
leingod
Big Clucker
 
leingod's Avatar
 
Join Date: Mar 2011
Location: Indonesia, Balikpapan
Posts: 127
Reputation: 4
Default Re: Leingod's Simple MessageBox v.1.0

Quote:
Originally Posted by Rock_Ro View Post
Photos or something?
Uploaded
__________________
Quote:
Whenever you're feeling down, desperate, just remember you were the fastest sperm!
[FilterScript]
Leingod's Team Chooser System. v.1.0
Leingod's TextDraw Message Box

[Include]
Leingod's TextDraw Message Box
leingod is offline   Reply With Quote
Old 23/08/2011, 06:24 PM   #4
xkirill
High-roller
 
xkirill's Avatar
 
Join Date: May 2011
Location: In a box infront of your house stealing your WiFi
Posts: 2,475
Reputation: 273
Default Re: Leingod's Simple MessageBox v.1.0

awasome
thanks!
__________________
xkirill is offline   Reply With Quote
Old 23/08/2011, 06:43 PM   #5
Zh3r0
Godfather
 
Join Date: Mar 2008
Posts: 5,597
Reputation: 381
Default Re: Leingod's Simple MessageBox v.1.0

I see you used all the code inside the callbacks, why not making a simple function, 1 line long?
__________________
Zh3r0 is offline   Reply With Quote
Old 23/08/2011, 08:28 PM   #6
xkirill
High-roller
 
xkirill's Avatar
 
Join Date: May 2011
Location: In a box infront of your house stealing your WiFi
Posts: 2,475
Reputation: 273
Default Re: Leingod's Simple MessageBox v.1.0

can you explane me how do i add more lines..
like when player disconnect it will send a message: player has disconnected
and all.. :\
__________________
xkirill is offline   Reply With Quote
Old 23/08/2011, 10:27 PM   #7
Horrible
Huge Clucker
 
Horrible's Avatar
 
Join Date: Jun 2011
Location: Indonesia
Posts: 459
Reputation: 82
Default Re: Leingod's Simple MessageBox v.1.0

not bad
4/5
__________________
Click to see my works
Horrible is offline   Reply With Quote
Old 23/08/2011, 11:36 PM   #8
Davz*|*Criss
Gangsta
 
Davz*|*Criss's Avatar
 
Join Date: Jan 2011
Posts: 860
Reputation: 15
Default Re: Leingod's Simple MessageBox v.1.0

Nice
__________________
Join Extreme Missions Now: 176.31.192.96:7778!
Davz*|*Criss is offline   Reply With Quote
Old 24/08/2011, 03:51 AM   #9
leingod
Big Clucker
 
leingod's Avatar
 
Join Date: Mar 2011
Location: Indonesia, Balikpapan
Posts: 127
Reputation: 4
Default Re: Leingod's Simple MessageBox v.1.0

Quote:
Originally Posted by Zh3r0 View Post
I see you used all the code inside the callbacks, why not making a simple function, 1 line long?
don't understand

Quote:
Originally Posted by xkirill View Post
can you explane me how do i add more lines..
like when player disconnect it will send a message: player has disconnected
and all.. :\
Added
see above the picts

Quote:
Originally Posted by Horrible View Post
not bad
4/5
Thanks ^__^

Quote:
Originally Posted by Davz*|*Criss View Post
Nice
Thanks
__________________
Quote:
Whenever you're feeling down, desperate, just remember you were the fastest sperm!
[FilterScript]
Leingod's Team Chooser System. v.1.0
Leingod's TextDraw Message Box

[Include]
Leingod's TextDraw Message Box
leingod is offline   Reply With Quote
Old 24/08/2011, 06:50 AM   #10
opik
Little Clucker
 
Join Date: May 2010
Posts: 12
Reputation: 0
Default Re: Leingod's Simple MessageBox v.1.0

Cool. but, can you make Command for Show and Hide the textdraw?.
opik is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] Job Information MessageBox ImprovementÖ Filterscripts 15 25/03/2013 12:27 PM
[FilterScript] Leingod's Team Chooser System. v.1.0 leingod Filterscripts 6 28/09/2012 10:23 PM
Wie erstelle ich eine Messagebox? DarkZero Archive 2 23/04/2011 02:30 AM
1 Simple question So i want 1 simple answer Jay. Help Archive 2 15/05/2010 12:16 PM


All times are GMT. The time now is 04:27 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.