[FilterScript] Mining
#1

Hey guys, first of all this script is hugely inspired by Irresistible Gaming SF-CNR so great props to them.


Commands

/vehicle - Has 2 options which are ores and take.
-> /vehicle ores Lists all loaded ores in the vehicle.
-> /vehicle take Lists all loaded ores in the vehicle and allows you to take them.

/ore - Has 3 options which are info, mine and take.
-> /ore info Shows information(value, mining time etc.) about the closest vein.
-> /ore mine Mines the closest vein.
-> /ore take Takes a dropped ore from the ground if there's any nearby.

About Ores

You can modify existing ores or add new ore types from OreData array which starts at line 66, if you add new ore types don't forget to increase MAX_ORE_TYPES.

Vein Spawns

You can add or remove spawn coordinates from spawn_coords array which starts at line 578. If you have more spawn coords than MAX_VEINS, any coords with their index being higher than MAX_VEINS will be ignored so don't forget to increase it if you add new coords.

Notes

This script doesn't create any vehicles so you have to make sure there are vehicles with any of these models on your server: 414, 455, 456, 498, 499, 609. You also can change required vehicles from Vehicle_IsMiningVehicle function.

Credits

Irresistible Gaming & Lorenc_ for the idea.
Emmet_ for Extended vehicle functions
[HLF]Southclaw for Progress Bars v2
Incognito for Streamer Plugin
Yashas for Improved ZCMD

Downloads

Reply
#2

Very nice job!
Reply
#3

good job !
bro can u give me the radar mod fie?
Reply
#4

Nice job man!
Reply
#5

Good job bro!
Reply
#6

Good job.
Reply
#7

Hilarious
Reply
#8

I changed the download links on the first post because the old version had a little bug. The bug was simply when you mined a vein, its label didn't get updated until someone mined it again. -you probably can see it happening on the video-

If you don't want to redownload, you can do this:

Find this line:
Code:
Player_GiveOre(playerid, VeinData[vein_id][Type]);
Add this under it:
Code:
Vein_Update(vein_id);
-------------------------------------------------

Quote:
Originally Posted by DaytonRPG
View Post
Very nice job!
Quote:
Originally Posted by Greaper
View Post
Nice job man!
Quote:
Originally Posted by eco1999
View Post
Good job bro!
Quote:
Originally Posted by HaRdiiZin
View Post
Good job.
Thanks guys.

Quote:
Originally Posted by JuzDoiT
View Post
good job !
bro can u give me the radar mod fie?
http://www.gtagarage.com/mods/show.php?id=26317

Quote:
Originally Posted by Deniz1467
View Post
Hilarious
Reply
#9

Great stuff. Glad we inspired you!
Reply
#10

Hey and first well done, it's an awesome script, but when i try to compile it, i get these :
Code:
C:\Users\YoLo\Downloads\mining.pwn(492) : error 017: undefined symbol "isnull"
C:\Users\YoLo\Downloads\mining.pwn(524) : error 017: undefined symbol "isnull"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
I downloaded all the includes written on the pastebin page.
Thanks for your help :P

// EDIT : Nevermind found the solution :P
Reply
#11

This is amazing, +rep you made a great stuff bro.
Reply
#12

Reminds me of something Chaprnks made a while back. Looks awesome.
Reply
#13

Good IDEA !!
Keep it Up !
Reply
#14

Amazing, great job man!
Reply
#15

Quote:
Originally Posted by Lorenc_
View Post
Great stuff. Glad we inspired you!
Thanks!

Quote:
Originally Posted by Adamoneoone
View Post
Hey and first well done, it's an awesome script, but when i try to compile it, i get these :
Code:
C:\Users\YoLo\Downloads\mining.pwn(492) : error 017: undefined symbol "isnull"
C:\Users\YoLo\Downloads\mining.pwn(524) : error 017: undefined symbol "isnull"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
I downloaded all the includes written on the pastebin page.
Thanks for your help :P

// EDIT : Nevermind found the solution :P
Well, glad that you found the solution.

Quote:
Originally Posted by Brys
View Post
This is amazing, +rep you made a great stuff bro.
Quote:
Originally Posted by Jack_SMalls
View Post
Reminds me of something Chaprnks made a while back. Looks awesome.
Quote:
Originally Posted by Amunra
View Post
Good IDEA !!
Keep it Up !
Quote:
Originally Posted by kasis223
View Post
Amazing, great job man!
Thanks guys!
Reply
#16

PHP Code:
#include    <evf>           // https://sampforum.blast.hk/showthread.ph...1.41194608
#include    <progress2>     // https://sampforum.blast.hk/showthread.ph...1.41194608
#include    <streamer>      // https://sampforum.blast.hk/showthread.ph...1.41194608
#include    <izcmd>         // https://sampforum.blast.hk/showthread.php?tid=576114 
Credit them in the thread and let people know that you are using these. Not everyone will download the full script, some might just do it over pastebin so if they do they know what they have to get to run it.

Good job, I like it. Its unique and sexy. +rep for this one
Reply
#17

Quote:
Originally Posted by TwinkiDaBoss
View Post
PHP Code:
#include    <evf>           // https://sampforum.blast.hk/showthread.ph...1.71308938
#include    <progress2>     // https://sampforum.blast.hk/showthread.ph...1.71308938
#include    <streamer>      // https://sampforum.blast.hk/showthread.ph...1.71308938
#include    <izcmd>         // https://sampforum.blast.hk/showthread.php?tid=576114 
Credit them in the thread and let people know that you are using these. Not everyone will download the full script, some might just do it over pastebin so if they do they know what they have to get to run it.

Good job, I like it. Its unique and sexy. +rep for this one
Done, thanks!
Reply
#18

Not bad at all.
Reply
#19

This guy always impress me.....
Reply
#20

That's really good!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)