[Include] [INC]MoneyAreas
#1

[INC]MoneyAreas
What is it:
With this include you can easily add moneyareas.

What the f are moneyareas?:
A moneyarea is a small area where a player can stand on and will recieve some money regular.
For example: 50 dollar every 10 seconds.

How to use:
Place the file 'moneyarea.inc' in your includes folder.
Put on top of your script:
Code:
#include <moneyarea>
To add a moneyarea put this @ OnGameModeInit:

Code:
AddMoneyArea(AreaID, Float:MinX, Float:MaxX, Float:MinY, Float:MaxY, earnings, frequency);
Note:Use for every single moneyarea a diffrent AreaID!!!
(else it will overwrite an existing area).

MinX, MaxX, MinY & MaxX don't need further explanation.
earnings = amount of dollars the player will get when in a moneyarea
freqency = number of seconds.

You can toggle 1 or all moneyareas on/off for with:
Code:
UseMoneyArea(areaID, toggle);
&
Code:
UseAllMoneyAreas(toggle);
If a player is inside a moneyarea,the function
Code:
GetPlayerArea(playerid);
will return the AreaID, else it will return '-1'

And last but not least, you can show all area's as gangzone's with the function:
Code:
ShowMoneyAreasAsGangZones(toggle);
Download:

- moneyarea.inc (mediafire)
- moneyarea.inc (sendspace)
- Pastebin (indentation = f**ked up )

If you're going to use this, please keep the credits, thank you

I hope you'll enjoy

=>Sandra<=




Reply
#2

Very nice
Reply
#3

Good Job!
Reply
#4

nice!
Reply
#5

looooool

i love it!
Reply
#6

nice

im going to use this on my tdm world

Great release
Reply
#7

i cant download but ican create money areas without this code
NICE WORK
Reply
#8

Quote:
Originally Posted by Warriors_Tornado
i cant download but ican create money areas without this code
NICE WORK
Yeah, it's not that hard

I added a sendspace-mirror
Reply
#9

I didnt understand.
I want to place the Money Area in this position:
-1445.0558,727.5662,6.8798,55.8552

Please give me the right code to use this
Reply
#10

owning owning
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)