PDA

View Full Version : [FilterScript] [FS] TowTruck MiniMission (LV edition)


zeruel_angel
09/08/2007, 11:20 PM
TOW TRUCK MINIMISSION!
(las venturas EDITION)

Like in single player game, if you enter a special vehicle (in this case Tow Truck MODEL ID=525) You get a message
saying that you can start special Minimission just by pressing "buttom 2". You can cancell it anytime by just by
pressing "buttom 2" again. If you get off the vehicle for more than 10 sec during a MiniMission, you will cancell
it. For every 5 times you complete this minimission, you will get a $PECIAL BONU$. All just like in Single Player
Game.

Just follow instructions in "readme.txt" to install this MiniMission to your server.
It includes PWN and AMX, Readme.txt with instructions.
TowTruck.txt Has 25 locations of wrecked vehicles in Las Venturas (you can change them if you like)

download Link:
English Version -> not for now
Spanish Version -> not for now

PASTEBIN Link:
English Version
Readme.txt -> http://pastebin.com/f222342f3
TowTruck.PWN -> http://pastebin.com/f7d234d8e (updated!)
TowTruck.TXT -> http://pastebin.com/f6b96f555

Details:
Wrecked vehicles are set randomly beetwen all the locations in TowTruck.txt, Wrecked Vehicle can randomly be a
Wrecked car or a wrecked truck. Vehicles color are random too. Wrecked Vehicles are created when a mission start,
and destroyed when a mission ends, be sure to have enought place for new cars to be created (700 max vehilces and 70
max different model with 0.2.1 server). Wrecked cars are LOCKED,(a timer makes sure that is locked for everyone
everytime). A raceCheckpoint near the wrecked car FIXS the SYNC vehicle bug in the server. (when you see a car in
some place but the server "thinks" is in other place)

BUGS: If the Towed car explodes, you will need to cancel the mission and start it over again... (THANKS EvilWind )

.:: WARNING ::.
:::IF YOUR GAMEMODE USES RACECHECKPOINTS YOU MAY HAVE SOME TROUBLES:::

Here are some ScreenShots (just don't pay atention to the FUEL indicator ;D):

http://img440.imageshack.us/img440/8663/samp027it9

.th.png (http://img440.imageshack.us/my.php?image=samp027it9.png)http://img465.imageshack.us/img465/2316/samp028cu7

.th.png (http://img465.imageshack.us/my.php?image=samp028cu7.png)http://img172.imageshack.us/img172/2103/samp029qq4

.th.png (http://img172.imageshack.us/my.php?image=samp029qq4.png)

http://img258.imageshack.us/img258/9007/samp030md5

.th.png (http://img258.imageshack.us/my.php?image=samp030md5.png)http://img467.imageshack.us/img467/3017/samp031qz5

.th.png (http://img467.imageshack.us/my.php?image=samp031qz5.png)http://img411.imageshack.us/img411/227/samp032bd9.

th.png (http://img411.imageshack.us/my.php?image=samp032bd9.png)

http://img488.imageshack.us/img488/632/samp033vb3.

th.png (http://img488.imageshack.us/my.php?image=samp033vb3.png)http://img19.imageshack.us/img19/8880/samp034bt9.th

.png (http://img19.imageshack.us/my.php?image=samp034bt9.png)http://img527.imageshack.us/img527/4479/samp035pg3

.th.png (http://img527.imageshack.us/my.php?image=samp035pg3.png)

Enjoy!

See you later!

EvilWind
09/08/2007, 11:44 PM
damn nice scripts you coming with, what about, not minimission and replace it with a ''onpickuppickup'' you can do command like /bussjob, then you can use the buss, just an example, more RP :P

zeruel_angel
09/08/2007, 11:51 PM
Yes I think... but ppl in my server hated to use the /help cmd or to remember a lot of cmd. So all my modes (FS in fact) have Menus, Butttoms, Pickups, gameTexts and are as more like the single player game as I coud make them.
Thats why I don't use cmds...

Thanks for the suggestion, you can download it and change that if you like, just don't erase my name in the PWN.

See you later...

EvilWind
10/08/2007, 12:07 AM
thanks, im gonna use this with a cmd :D making a RP server, could you make a Gas Transporter mission ? using the truck''with the gas trailer on'' and make checkpoints to deliver gas etc etc, would be awesome :D

zeruel_angel
10/08/2007, 12:19 AM
Well actually that is what i'm doing right now... In fact I already have one, but for 0.1.b using "Dune" and inside a GameMode, so I just need to update it to 0.2.1 and make it a filterscript...
Sorry but I will make it a MiniMission too... with the "buttom 2" thing...
See you later and thanks for the suggestion!

P.S: PM me your server IP to see this working, I only tested it with my Alpha Testers so I don't know if it works perfect...

See you later!

EvilWind
10/08/2007, 01:05 AM
sure, its fully working, just one bug i find in the TowTruck thing, it the towedcar explodes, you need to reconnect to server :P

zeruel_angel
10/08/2007, 02:15 AM
Oh! I forgot to mention that bug, but you dont have to reconect the server, you just CANCEL the mission and start it over again.

Is a server bug, vehicles exploding with out ppl inside are not syncroniced, so the server thinks the vehicle is OK but your client says it is dead. What is more, OnVehicleDead is not beeing called....

THANKS FOR PLAYING IT! :D it makes me happy to know ppl is using my crappy code :')

See you later!

Spilot
10/08/2007, 02:24 AM
lol your crapy codes help me alot :lol:

and make my server is great too.... :D

Maikel
10/08/2007, 07:39 AM
Nice :D

onehels
10/08/2007, 08:45 AM
May you to do this script to LS?

zeruel_angel
10/08/2007, 01:58 PM
Nice :D

THANKS!


May you to do this script to LS?


Yes I will, BTW its easy to change the city, just change the unique coord in the PWN to a PAY & SPRAY in LS and them erase all coords in TowTruck.txt and fill it with LS coords...

Anyone can do it, and if you do, let me know, maybe tomorrow I'll make it...

See you later!

onehels
10/08/2007, 07:44 PM
and, plz post this script to? becose this link to me did not work=(

zeruel_angel
10/08/2007, 08:02 PM
First post updated with pastebin LINKS!

PASTEBIN Link:
English Version
Readme.txt -> http://pastebin.com/f222342f3
TowTruck.PWN -> http://pastebin.com/f9cb953d
TowTruck.TXT -> http://pastebin.com/f6b96f555

Enjoy!

See you later!

flippi
10/08/2007, 08:16 PM
hi u did a great job but cars aint spawming corectly

zeruel_angel
10/08/2007, 08:33 PM
Hi, first of all, thanks.
Now tell me, whats the problem with car respawn? There is a server bug about car respawning, the cars spawn else where, but not where they are sopouse to spawn, thats why I used a racecheckpoint to attach the car. As you can see in he code, the Racecheckpoint is created IN FRONT of the car, but you will see that sometimes the race checkpoint is far away from the car, this is because for the SERVER the car is somewhere and for you (the CLIENT) the car is elsewhere. Its a SYNC bug not a CODE BUG.
Its the same when you are playing and you see a player enter an invisible vehicle and then the vehicle spawn there, thats because for you the car was far away but for the other player the car was just there... Again a SYNC bug.

If the problem is different, please let me know so I can fix it.

See you later!

Beginner
11/08/2007, 03:15 AM
Wow! Another mission!

When u realise the full map edition? Don't wonna spend my time for recoding. It will be very nice.

I've start collecting your scripts =)

zeruel_angel
11/08/2007, 04:05 AM
Thanks for the nice words!.
I just created them for my gamemode, but i thoung it would be nice to share them as my server isn't very popular and also because I'm hosting it (Not very good connection and dinamic IP)
So as soon I come out with an idea and made another script, I will release it here. I'm triying to make a 2 Player minimission. Or maybe "Kill Frenzy" like in Single Player game... if anyone have an idea, let me know it, if iI can make the [FS] I will make it.

Again, THANKS!

See you later!

onehels
11/08/2007, 12:50 PM
Yo scripts very nice, I like this mission!

But I have some problems! This and others your scripts conflict with my gamemode(Public Enemy:LS) on my server! All work good in the begining, but when in gamemode begin the race, checkpoint of place disappear, because checkpoint of race appear!
Real to fix this?

zeruel_angel
11/08/2007, 03:41 PM
Well, there is no way to fix this, UNLESS you copy MY FilterScript into YOUR GameMode and add some "IFs".
You will need to check IF player is in a minimission before drawing the race checkpoints, if you use the minimission as a FilterScript I don't see an easy way of doing that...

Sorry I can't help you this time. Unless not in an easy way...

See you later!

humble
11/08/2007, 05:33 PM
cool this is a nice fs it haves made my gamemode that little bit better just one question are the cars all over the map i have only tryed it in lv anyway thanks :mrgreen:

zeruel_angel
11/08/2007, 06:50 PM
Nop sorry, this is only for LV, if you want, you can add more car spots in "TowTruck.txt" but you will still need to take them to LV pay & spray...

Maybe if I'm to bored I will make a tri city TowTruck FS, and I can use some help, for example the coords of all pay & spray in the games.

See you later!

flippi
12/08/2007, 12:11 AM
Hi, first of all, thanks.
Now tell me, whats the problem with car respawn? There is a server bug about car respawning, the cars spawn else where, but not where they are sopouse to spawn, thats why I used a racecheckpoint to attach the car. As you can see in he code, the Racecheckpoint is created IN FRONT of the car, but you will see that sometimes the race checkpoint is far away from the car, this is because for the SERVER the car is somewhere and for you (the CLIENT) the car is elsewhere. Its a SYNC bug not a CODE BUG.
Its the same when you are playing and you see a player enter an invisible vehicle and then the vehicle spawn there, thats because for you the car was far away but for the other player the car was just there... Again a SYNC bug.

If the problem is different, please let me know so I can fix it.

See you later!
hi the problem is the car is spawn on top off roof or if u got him hes stuck in the wall

zeruel_angel
12/08/2007, 01:13 AM
If you can give me some coords near the car spawn (so i can figure out wich one is) i will delete or move it so it dosn't happends again.
Thanks for the BUG report! :D

See you later!

humble
14/08/2007, 09:51 PM
Hi again i was looking throught the pawn code and ther is no comand to give you the bonus it says you get the bonus but it was missing a little bit of code GivePlayerMoney(playerid,contador[playerid]*BONUS);// this is missing
new string[255];
format(string,sizeof(string),"You get a ~r~BONUS ~w~ every 5 Trailers!.~n~You Deliver %d Trailers your bonus is ~n~~b~$%d",contador[playerid],contador[playerid]*BONUS);
GameTextForPlayer(playerid,string,5000,3);
GivePlayerMoney(playerid,contador[playerid]*BONUS);// go's here
}
else
{
GameTextForPlayer(playerid,"~w~Mission complete! Here is your cash!. ~n~go get the other ~r~Trailer ~w~to the ~r~Target Desternation",5000,3);

hope you dont mind

zeruel_angel
14/08/2007, 10:26 PM
:-[ Well... what can i say... :-[
You are right :mrgreen:... I forgot that little detail... :(
Oh my goid I fell so embarrased... :-[ :-[ :-[

Thanks for the tip! I will fix it inmediatly!
(pastebin link updated)

See you later!

asteroid
20/08/2007, 03:44 PM
i knew hes awesome scripter

JaTochNietDan
05/09/2007, 06:19 PM
Facking great.

Added to

Funserver

zeruel_angel
05/09/2007, 06:31 PM
Facking great.

Added to

Funserver

THANKS
BTW would you mind PM me your IP later, I have never had the chance to see my FilterScripts working in a server with many ppl.

See you later!

Clank
29/02/2008, 06:03 PM
Maybe a bit lateXD but i like the script and I have a question:

u need a SF towtruck.txt?

zeruel_angel
01/03/2008, 01:20 AM
Maybe a bit lateXD but i like the script and I have a question:

u need a SF towtruck.txt?


=D

YEAH! I can use that! the most important thing I need i the coords of the oil refinery in SF (is really in LS) you know, the big extrange place you can see acroos the sea from the SF airport if you look to the south-east.

EVERY LITTLE HELP IS APRECIATED!!!!


See you later!

hipy
01/03/2008, 09:59 AM
hi it works yes but what i have i start a mission pick up car then when i brought it away i want my friend to do mission but when he pressesd 2 all clients crash and it happens to if i bring it away or pick it up , all clients crash from the server

Clank
01/03/2008, 11:28 AM
I tried the script on a localhost and it worked but external host crashed u know what to do?

zeruel_angel
01/03/2008, 01:34 PM
hi it works yes but what i have i start a mission pick up car then when i brought it away i want my friend to do mission but when he pressesd 2 all clients crash and it happens to if i bring it away or pick it up , all clients crash from the server


I tried the script on a localhost and it worked but external host crashed u know what to do?

Thats really weird, It never happened to me. I look like a problem with Destroying the vehicle...

It look like that if you have low ping it won't crash... WEIRD.

Sorry guys, I do not know the answer, but I will investigate a little. If I found something I will let you know. Please If you find a fix tell me.

See you later!!!

PinkFloydLover
01/03/2008, 01:44 PM
this is a super duper good script :mrgreen: :mrgreen: :mrgreen: :mrgreen: :mrgreen: :mrgreen: :mrgreen:

humble
03/03/2008, 06:09 PM
Thats really weird, It never happened to me. I look like a problem with Destroying the vehicle...

It look like that if you have low ping it won't crash... WEIRD.

Sorry guys, I do not know the answer, but I will investigate a little. If I found something I will let you know. Please If you find a fix tell me.

See you later!!!


It is a problem with Destroy vehicle it dosnt work fully the car destroys to you but if anyone is there i will not destroy to them hopefully it is fixed in the next SA-MP Update.

i have edited some of your scripts to work on my server. and Now my server is 98% finished i thought i would leave you my server ip to go and try them out

212.227.83.76:3033

Humble

Shustrik
13/07/2008, 09:58 AM
why i can't tow any cars ??? who can say ?!! >:D :(

roar
06/07/2009, 02:40 AM
this is nice!
Good job zeruel ! ;)

yossik17
23/12/2009, 06:04 PM
greate script,
do you want car spawns in the oil refinery? i can help you.
i don't know your skills but here sone ideas.
1.in every car there will be a man sitting in the car that waiting you, when you arrive the man go out the car and get in your car.
2..when you arrive you got out the towtruck and there be an animation that pretend the vehicle connection by player( plantbomb anime or something).

if you choose the first option so here more idea:
a fake chat beetwen the costumer and you

Commander_Shaw
01/02/2010, 07:36 AM
have or are you going to up date this script for 3.0 version of samp?..i think this would be great for a side job in all server..i put it on ours but we run 3.0 but i don't know if i done it right as i had to add the cars to the script and add the tow truck to it as well but the red markers never show up and once you do find a car it don't give you anything for it..so i might have messed it up in the way i done it..what do you think

BodyBoardVEVO
31/12/2012, 03:05 PM
How Can Attach Car ???