SA-MP Forums Archive
[FilterScript] [FS] Repair Pickups [R&V] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] [FS] Repair Pickups [R&V] (/showthread.php?tid=71614)

Pages: 1 2


[FS] Repair Pickups [R&V] - Tr1viUm - 02.04.2009

REPAIR PICKUPS AKA REPAIR & VEHICLE
Always wanted to have a repair system in your script? Cool, since you're able to create WORKING repair pickups with this script. Some people may remember my previous version which was bugged. I hope it's not bugged now. It's simple, just login as RCON ADMIN and use /createrepair. It will be functional then thus people can repair their vehicle at the spot you used /createrepair. To get a good idea of what this can bring to your server I've listed a few features.

PASTEBIN (repair.pwn)
UPLOADFFS RAR(repair.pwn, repair.amx, repairpickups.txt)
UPLOADFFS ZIP(repair.pwn, repair.amx, repairpickups.txt)

NOTE: Mirrors are welcome

Easy Usage
- /createrepair [range] [healing] [maxhealing] [respawntime] [price] « Use this to create a repair pickup.
- /deleterepair « Use this to delete a repair pickup. You have to be in range of a repair pickup.
- /reloadrepair « Use this to reload the repair pickups. This may be useful to get the script faster after creating repair pickups.
Range « RCON ADMINS can specify a range when a vehicle can be healed.
Healing Amount « RCON ADMINS can specify an amount of heal points when someone is at a repair pickup with the cash.
Maximal Healing « RCON ADMINS can specify a maximal amount of heal points that can be applied to a vehicle. Standart value is 1000 as that's the maximal health a vehicle possesses.
Respawn Time « RCON ADMINS can specify a respawn time of the repair pickup.
Price « RCON ADMINS can set a price for ONE repair. It will automaticly remove the money from his wallet.
repairpickups.txt « [size=7pt]Put repairpickups.txt @ scriptfiles to get some standart repair pickups spawned. If you don't want them to be spawned already. Just don't add it to scriptfiles and start the server. The script will auto create a file.




Re: [FS] Repair Pickups [R&V] - DauerDicht - 02.04.2009

cool thx i will test


Re: [FS] Repair Pickups [R&V] - Diablosrouge - 02.04.2009

That rox


Re: [FS] Repair Pickups [R&V] - WannaKnow - 02.04.2009

Very nice


Re: [FS] Repair Pickups [R&V] - Sergio_team - 02.04.2009

nice


Re: [FS] Repair Pickups [R&V] - luxeon - 02.04.2009

haha - i remember your first version ^^
useful for free roam servers ^^

Luxeon


Re: [FS] Repair Pickups [R&V] - T RP [Tomorrows-RP.co.uk] - 02.04.2009

Great work - Tested, Working fine.


Re: [FS] Repair Pickups [R&V] - vinnie - 02.04.2009

This triv fella becoming a scripting magician


Re: [FS] Repair Pickups [R&V] - gijsmin - 02.04.2009

Good idea


Re: [FS] Repair Pickups [R&V] - Tr1viUm - 02.04.2009

Quote:
Originally Posted by T RP [Tomorrows-RP.co.uk
]
Great work - Tested, Working fine.
Cool that it works for other people too.


Re: [FS] Repair Pickups [R&V] - RyDeR` - 02.04.2009

Thx i love it


Re: [FS] Repair Pickups [R&V] - Weirdosport - 02.04.2009

From what i've seen of the script you could be waiting up to 5 seconds for your vehicle to be repaired. The range thing is a nice bonus, but i'm not sure that it was worth it considering it will require vastly more processing. In your 5 seconds timer, there's a loop, with quite a meaty chunk of code in there.

Increasing the amount of time between each timer iteration was sensible, but this will cause players to have to wait.. wouldn't it have been simpler using a CreatePickup system?

EDIT: This may seem a bit hypocritical taking into account my FS listed below, but I feel that in that case pickups would detract from the overall effect..


Re: [FS] Repair Pickups [R&V] - Raimundas_Raimis - 02.04.2009

Bro , great job


Re: [FS] Repair Pickups [R&V] - _ReloadeD_ - 03.04.2009

why it so big?


Re: [FS] Repair Pickups [R&V] - Donvalley - 03.04.2009

Great Job mate.


Re: [FS] Repair Pickups [R&V] - graffyk - 03.04.2009

Wow,nice script!


Re: [FS] Repair Pickups [R&V] - Rac3r - 03.04.2009

Nice, I'm curious to see how you've scripted this, because the Vehicle Pickup is bugged.

It looks nice, gonna check the code now.


Re: [FS] Repair Pickups [R&V] - Tr1viUm - 04.04.2009

Quote:
Originally Posted by Weirdosport
Increasing the amount of time between each timer iteration was sensible, but this will cause players to have to wait.. wouldn't it have been simpler using a CreatePickup system?
I believe I had some issues with CreatePickup last time. As far as I know vehicles can only pick up PICKUPTYPE 14 and that doesn't trigger OnPlayerPickUpPickup. That's why I used a timer for it + you can edit the timer interval by changing this value 'RV_CHECK_TIME'. People can customize the script like they want it to be.

Why don't you give it a try?


Re: [FS] Repair Pickups [R&V] - miokie - 04.04.2009

Nice Job Pretty useful...


Re: [FS] Repair Pickups [R&V] - t0nc3k - 04.04.2009

I cant find it or repair, its it works?