23.08.2011, 12:00
(
Последний раз редактировалось leingod; 25.01.2012 в 05:42.
)
Le-TextDraw Message Box
Introduction:
Код:
This is TextDraw Message Box that will show you player connect / disconnect / or your own message to show.
Код:
-Me for make this. -Sandra18[NL] I got little code from him. -[MWR]Blood Helping me.
Код:
PM me if you found any bugs
Код:
Older: -Pastebin v.1.0 -Pastebin v.2.0 NOT RECOMMENDED / BUGGED Newest: -Pastebin v.3.0 (FilterScript version) RECOMMENDED! -Pastebin v.3.0 (Include version) RECOMMENDED!
Код:
-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!
Picts:Код:
The command is using zcmd include Click here to download zcmd
Ask me for further information..
How To Install:
Код:
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:
Код:
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);