SA-MP Forums Archive
[Include] [INC]MoneyAreas - 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)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] [INC]MoneyAreas (/showthread.php?tid=29897)



[INC]MoneyAreas - Sandra18[NL] - 12.03.2008

[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<=







Re: [INC]MoneyAreas - Rks25 - 12.03.2008

Very nice


Re: [INC]MoneyAreas - Gutoo - 13.03.2008

Good Job!


Re: [INC]MoneyAreas - omfg - 13.03.2008

nice!


Re: [INC]MoneyAreas - Shark[BR] - 13.03.2008

looooool

i love it!


Re: [INC]MoneyAreas - mave_man - 13.03.2008

nice

im going to use this on my tdm world

Great release


Re: [INC]MoneyAreas - Warriors_Tornado - 13.03.2008

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


Re: [INC]MoneyAreas - Sandra18[NL] - 13.03.2008

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


Re: [INC]MoneyAreas - [RTN]KoBi - 19.03.2008

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


Re: [INC]MoneyAreas - jannka23 - 19.03.2008

owning owning