[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


Messages In This Thread
[INC]MoneyAreas - by Sandra18[NL] - 12.03.2008, 21:55
Re: [INC]MoneyAreas - by Rks25 - 12.03.2008, 21:57
Re: [INC]MoneyAreas - by Gutoo - 13.03.2008, 01:04
Re: [INC]MoneyAreas - by omfg - 13.03.2008, 11:17
Re: [INC]MoneyAreas - by Shark[BR] - 13.03.2008, 13:44
Re: [INC]MoneyAreas - by mave_man - 13.03.2008, 13:46
Re: [INC]MoneyAreas - by Warriors_Tornado - 13.03.2008, 15:07
Re: [INC]MoneyAreas - by Sandra18[NL] - 13.03.2008, 16:10
Re: [INC]MoneyAreas - by [RTN]KoBi - 19.03.2008, 16:10
Re: [INC]MoneyAreas - by jannka23 - 19.03.2008, 16:21

Forum Jump:


Users browsing this thread: 1 Guest(s)