Jump to page content
English English   Polish Polish   Dutch Dutch   Russian Russian   German German   Hungarian Hungarian   Norwegian Norwegian   Swedish Swedish   Finnish Finnish   Romanian Romanian   Spanish Spanish   Portuguese Portuguese   Latvian Latvian  
Homepage
Home
Register
Login

Resources
Forum
Wiki
Servers

rssPointsystem Classes (pointsystem_classes)

Category:script
Author(s):Original
Downloads:1076
Rate:You need to be logged in to vote
Rating:2.6 (7 Votes)
Description:
Hello guys,

Today i'm here for release my new script, it's pretty simple but can be very useful.

When i started my scripter career i always tryed to make a fully working pointsystem for my server.
Now i want help who want do this for his own server.

For now you can store just points, but in future releases i will implement other stuffs, like cash and others.

This script have 4 simple exported functions:

- getPlayerPoints(thePlayer)
- setPlayerPoints(thePlayer)
- takePlayerPoints(thePlayer)
- givePlayerPoints(thePlayer)

And here are the arguments for use these functions:

- int getPlayerPoints(element player )

- bool setPlayerPoints(element player, int amount)

- bool takePlayerPoints(element player, int amount)

- bool givePlayerPoints(element player, int amount)

And you have 2 methods for store the datas:

- On accounts
- On SQL database

For select the method you have to change the resource setting in the admin panel: 'accounts' or 'database'
...

(more)

Download latest version | Report

Version history

Version Publish Date Changes
0.1.0 2012-01-05 12:39:10 First public release Download