12.03.2008, 21:55
[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>
Code:
AddMoneyArea(AreaID, Float:MinX, Float:MaxX, Float:MinY, Float:MaxY, earnings, frequency);
(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);
Code:
GetPlayerArea(playerid);
And last but not least, you can show all area's as gangzone's with the function:
Code:
ShowMoneyAreasAsGangZones(toggle);
- moneyarea.inc (mediafire)
- moneyarea.inc (sendspace)
- Pastebin (indentation = f**ked up
![confused](images/smilies/confused.gif)
If you're going to use this, please keep the credits, thank you
![Smiley](images/smilies/smile.png)
I hope you'll enjoy
![Smiley](images/smilies/smile.png)
=>Sandra<=