[FilterScript] [0.3e]Niko_boy"s Vehicle Spawner Based on TextDraws [Build 1.1]
#1

TextDraw[0.3e]
Based
Vehicle Spawnerby Niko_boy
__________________
So we all know many Dialog based or command based vehicle spawn scripts are already available on forums around.
I too decided to work upon one but i thought would be useless.
Suddenly i realised of 0.3e and thought to try out new functions that are ->

  • SelectTextDraw
and
  • OnPlayerClickTextDraw


Preview : short picture..>


Usage:
  • /vehiclemenu - Main command that shows the list / menu
  • /destroycars - RCON Command to destroy all unocuppied spawned cars

Features:-
  • 0.3e based
  • Using ZCMD < i use it only >
  • Having latest features of TextDraws
  • Cool Presntation in script
  • 16 vehicles included in List
  • When player spawns new car it , Auto deletes the last spawned vehicle.
    [
    You can edit them by following way:
    -> Open Script goto OnPlayerClickTextDraw i.e. line 91
    -->Now you can see lines like SpawnCarForPlayer( playerid , 402 ); where the number 402 is vehicle ID
    and after } bracket it is mentioned CarNAME in this case it is Buffalo.
    --->Visit https://sampwiki.blast.hk/wiki/Vehicles:All , to see VehicleIDs with Names and replace Number 402 with vehicle ID and after ward replace //Buffalo with //NEW CAR Name , for future references.
    ]
  • meh, what else... JUST TRY IT your self

Notes:-

  1. Keep All Credits , do not mess much with script else it will get bugged.
  2. Feel free to edit stuff(s) <only if you kno what they are>
  3. No Mirror of Files, re-releasing is allowed


Credits:
SA-MP : For everything and new updates.
Zeex : for ZCMD
Myself : for working out with this script.
Zamaroht : for his TextDrawEditor script
ghosty : for Testing stuff(s) with me
Others : SAMP's IRC channel for few guidence. PAWNO and Notepad :P
Download Enjoy , Test , post Suggestion(s) and report any Bugs

Mirror(s)
http://lh.rs/NSe6xw0UMtGm
http://www.mediafire.com/?3w1hk5poly6geyu
Bugs -> None

Update(s):

Code:
v1.0:  Initial Release
v1.1:  Fixed Destroy Vehicles!

Future Plans:
-> Code Optimization
-> More Vehicles and few stuffs
Reply
#2

Nice work Niko mate

haha FIRST COMMENT
Reply
#3

thank you for appericiation mate - =D
Reply
#4

It's nice based script.. Add more cars
Reply
#5

Nice mate! Cool FS!!
Reply
#6

Thanks
i will think of updates sooner after i get a few more ideas or suggestions..
Reply
#7

Woow cool nice work
+rep
Reply
#8

Good work : usefull
Reply
#9

Nice one
Reply
#10

ill be waiting for ven version with more cars.

Suggestion: You can decorate this textdraws menu to look it better and add a description when you choose a car, like speed, boost etc...
Reply
#11

NICE FS GOOD WORK
Reply
#12

Good
Reply
#13

Ooo! Nice! I'm using it for my server... But I have a problem.
Until I installed your FS, I had some other text-draws implemented in my GM, that show the servers name on the screen and some others like that.. Now, they're gone. I uninstalled your script, and then my Text-Draws are back.
How can I have all this features, without losing my other work?
It looks like your FS is replacing the following lines:
Quote:

//------------------------------------------------------------------------------
//Logo-Romania-Best-Stunt-----------------------------------------------------
//------------------------------------------------------------------------------
Textdraw0 = TextDrawCreate(505.000000, 419.000000, "Best");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 2);
TextDrawLetterSize(Textdraw0, 0.300000, 1.000000);
TextDrawColor(Textdraw0, 16711935);
TextDrawSetOutline(Textdraw0, 1);
TextDrawSetProportional(Textdraw0, 1);

Textdraw1 = TextDrawCreate(552.000000, 419.000000, "Stunt");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 2);
TextDrawLetterSize(Textdraw1, 0.300000, 1.000000);
TextDrawColor(Textdraw1, 16711935);
TextDrawSetOutline(Textdraw1, 1);
TextDrawSetProportional(Textdraw1, 1);

Textdraw2 = TextDrawCreate(563.000000, 430.000000, "Serverul");
TextDrawBackgroundColor(Textdraw2, 255);
TextDrawFont(Textdraw2, 2);
TextDrawLetterSize(Textdraw2, 0.219999, 1.100000);
TextDrawColor(Textdraw2, -1);
TextDrawSetOutline(Textdraw2, 1);
TextDrawSetProportional(Textdraw2, 1);

Textdraw3 = TextDrawCreate(533.000000, 430.000000, "]");
TextDrawBackgroundColor(Textdraw3, 255);
TextDrawFont(Textdraw3, 0);
TextDrawLetterSize(Textdraw3, 0.219999, 1.100000);
TextDrawColor(Textdraw3, -1);
TextDrawSetOutline(Textdraw3, 0);
TextDrawSetProportional(Textdraw3, 1);
TextDrawSetShadow(Textdraw3, 1);

Textdraw4 = TextDrawCreate(539.000000, 425.000000, "pe");
TextDrawBackgroundColor(Textdraw4, 255);
TextDrawFont(Textdraw4, 2);
TextDrawLetterSize(Textdraw4, 0.300000, 1.899999);
TextDrawColor(Textdraw4, -1);
TextDrawSetOutline(Textdraw4, 1);
TextDrawSetProportional(Textdraw4, 1);

Textdraw5 = TextDrawCreate(493.000000, 417.000000, "~>~");
TextDrawBackgroundColor(Textdraw5, 255);
TextDrawFont(Textdraw5, 2);
TextDrawLetterSize(Textdraw5, 0.250000, 1.299999);
TextDrawColor(Textdraw5, -1);
TextDrawSetOutline(Textdraw5, 0);
TextDrawSetProportional(Textdraw5, 1);
TextDrawSetShadow(Textdraw5, 1);

Textdraw6 = TextDrawCreate(586.000000, 417.000000, "~<~");
TextDrawBackgroundColor(Textdraw6, 255);
TextDrawFont(Textdraw6, 2);
TextDrawLetterSize(Textdraw6, 0.250000, 1.299999);
TextDrawColor(Textdraw6, -1);
TextDrawSetOutline(Textdraw6, 0);
TextDrawSetProportional(Textdraw6, 1);
TextDrawSetShadow(Textdraw6, 1);

Textdraw7 = TextDrawCreate(489.000000, 430.000000, "Bun venit");
TextDrawBackgroundColor(Textdraw7, 255);
TextDrawFont(Textdraw7, 2);
TextDrawLetterSize(Textdraw7, 0.219999, 1.000000);
TextDrawColor(Textdraw7, -1);
TextDrawSetOutline(Textdraw7, 1);
TextDrawSetProportional(Textdraw7, 1);

Textdraw8 = TextDrawCreate(555.000000, 430.000000, "]");
TextDrawBackgroundColor(Textdraw8, 255);
TextDrawFont(Textdraw8, 0);
TextDrawLetterSize(Textdraw8, 0.219999, 1.100000);
TextDrawColor(Textdraw8, -1);
TextDrawSetOutline(Textdraw8, 0);
TextDrawSetProportional(Textdraw8, 1);
TextDrawSetShadow(Textdraw8, 1);

Textdraw9 = TextDrawCreate(538.000000, 405.000000, "]");
TextDrawBackgroundColor(Textdraw9, 255);
TextDrawFont(Textdraw9, 0);
TextDrawLetterSize(Textdraw9, 0.330000, 1.399999);
TextDrawColor(Textdraw9, -1);
TextDrawSetOutline(Textdraw9, 0);
TextDrawSetProportional(Textdraw9, 1);
TextDrawSetShadow(Textdraw9, 1);

Textdraw10 = TextDrawCreate(529.000000, 407.000000, "~u~");
TextDrawBackgroundColor(Textdraw10, 255);
TextDrawFont(Textdraw10, 0);
TextDrawLetterSize(Textdraw10, 0.330000, 1.399999);
TextDrawColor(Textdraw10, -1);
TextDrawSetOutline(Textdraw10, 0);
TextDrawSetProportional(Textdraw10, 1);
TextDrawSetShadow(Textdraw10, 1);

Textdraw11 = TextDrawCreate(546.000000, 407.000000, "~u~");
TextDrawBackgroundColor(Textdraw11, 255);
TextDrawFont(Textdraw11, 0);
TextDrawLetterSize(Textdraw11, 0.330000, 1.399999);
TextDrawColor(Textdraw11, -1);
TextDrawSetOutline(Textdraw11, 0);
TextDrawSetProportional(Textdraw11, 1);
TextDrawSetShadow(Textdraw11, 1);

Textdraw12 = TextDrawCreate(531.000000, 390.000000, "]");
TextDrawBackgroundColor(Textdraw12, 255);
TextDrawFont(Textdraw12, 0);
TextDrawLetterSize(Textdraw12, 0.779999, 2.29999;
TextDrawColor(Textdraw12, -1);
TextDrawSetOutline(Textdraw12, 1);
TextDrawSetProportional(Textdraw12, 1);

What to do now?
Reply
#14

i will fix it out lol it happen cuz on filterscript int / exit i was mistaekly deleting all TD :X sorry for that ..

EDITastebin link updated check first post..
Reply
#15

Nice job,you should add more cars
Reply
#16

Код:
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(49) : error 017: undefined symbol "CancelSelectTextDraw"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(54) : error 017: undefined symbol "SelectTextDraw"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(76) : error 017: undefined symbol "TextDrawSetSelectable"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(77) : error 017: undefined symbol "TextDrawSetSelectable"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(78) : error 017: undefined symbol "TextDrawSetSelectable"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(79) : error 017: undefined symbol "TextDrawSetSelectable"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(80) : error 017: undefined symbol "TextDrawSetSelectable"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(81) : error 017: undefined symbol "TextDrawSetSelectable"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(82) : error 017: undefined symbol "TextDrawSetSelectable"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(83) : error 017: undefined symbol "TextDrawSetSelectable"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(84) : error 017: undefined symbol "TextDrawSetSelectable"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(85) : error 017: undefined symbol "TextDrawSetSelectable"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(86) : error 017: undefined symbol "TextDrawSetSelectable"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(87) : error 017: undefined symbol "TextDrawSetSelectable"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(88) : error 017: undefined symbol "TextDrawSetSelectable"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(89) : error 017: undefined symbol "TextDrawSetSelectable"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(90) : error 017: undefined symbol "TextDrawSetSelectable"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(91) : error 017: undefined symbol "TextDrawSetSelectable"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(92) : error 017: undefined symbol "TextDrawSetSelectable"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(93) : error 017: undefined symbol "TextDrawSetSelectable"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(101) : error 017: undefined symbol "CancelSelectTextDraw"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(109) : warning 235: public function lacks forward declaration (symbol "OnPlayerClickTextDraw")
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(191) : error 017: undefined symbol "CancelSelectTextDraw"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(216) : error 017: undefined symbol "CancelSelectTextDraw"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(254) : error 017: undefined symbol "CancelSelectTextDraw"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


24 Errors.
these errors what sholud i do
Reply
#17

Niko my mate! Awesome work!!
Reply
#18

Quote:
Originally Posted by ashwinsekhari
Посмотреть сообщение
Код:
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(49) : error 017: undefined symbol "CancelSelectTextDraw"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(54) : error 017: undefined symbol "SelectTextDraw"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(76) : error 017: undefined symbol "TextDrawSetSelectable"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(77) : error 017: undefined symbol "TextDrawSetSelectable"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(78) : error 017: undefined symbol "TextDrawSetSelectable"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(79) : error 017: undefined symbol "TextDrawSetSelectable"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(80) : error 017: undefined symbol "TextDrawSetSelectable"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(81) : error 017: undefined symbol "TextDrawSetSelectable"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(82) : error 017: undefined symbol "TextDrawSetSelectable"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(83) : error 017: undefined symbol "TextDrawSetSelectable"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(84) : error 017: undefined symbol "TextDrawSetSelectable"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(85) : error 017: undefined symbol "TextDrawSetSelectable"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(86) : error 017: undefined symbol "TextDrawSetSelectable"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(87) : error 017: undefined symbol "TextDrawSetSelectable"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(88) : error 017: undefined symbol "TextDrawSetSelectable"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(89) : error 017: undefined symbol "TextDrawSetSelectable"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(90) : error 017: undefined symbol "TextDrawSetSelectable"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(91) : error 017: undefined symbol "TextDrawSetSelectable"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(92) : error 017: undefined symbol "TextDrawSetSelectable"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(93) : error 017: undefined symbol "TextDrawSetSelectable"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(101) : error 017: undefined symbol "CancelSelectTextDraw"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(109) : warning 235: public function lacks forward declaration (symbol "OnPlayerClickTextDraw")
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(191) : error 017: undefined symbol "CancelSelectTextDraw"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(216) : error 017: undefined symbol "CancelSelectTextDraw"
C:\Users\AyushSekhari\Desktop\satdm\filterscript\car.pwn(254) : error 017: undefined symbol "CancelSelectTextDraw"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


24 Errors.
these errors what sholud i do
you are using old version of includes pack ..
get latest: http://files.sa-mp.com/samp03e_svr_R2_win32.zip
Reply
#19

Ok thx
Reply
#20

hey it compiled but a problem i added the fs name in server.cfg but when i open samp-server it shows
Код:
 Filterscripts
       loading filterscript 'car.amx'... 
       unable to load filterscript 'car.amx'
       Loaded 0 filterscripts
what should i do now please help me im using SATDM v11 gm for samp 0.3c
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)