Jump to content

Help


Elly_Bros

Recommended Posts

Posted

You can use such functions like:

setElementData

getElementData

setTimer

and so on.

http://www.sincitygaming.net - The next generation of gaming!

SinCity Gaming | UltiRace 24/7 - 188.165.199.162:22003

SinCity Gaming | Roleplay Gaming - Beta soon!

SinCity Gaming | Zombie Mode + - 188.165.199.162:22005

Instead of using ip: 188.165.199.162 you can use: sincitygaming.net

Posted
You can use such functions like:

setElementData

getElementData

setTimer

and so on.

More specifically?

All what you need to build it.. Don't except us to write it for you.

Example:

function resourseStart()
setElementData(player,"XP","0")
-- this timer would give XP +1 for you every second.
setTimer(myFunc,1000,0)
end
addEventHandler("onResourceStart",getResourceRootElement(getThisResource()),resourceStart)

your timer function example:

function myFunc()
xp = getElementData(player,"XP")
setElementData(player,"XP",tostring(xp+1))

and so on.. You can get your XP Data with

getElementData

These are JUST examples, how it should work.. These will not work straightly, you need to mix them and so on.

http://www.sincitygaming.net - The next generation of gaming!

SinCity Gaming | UltiRace 24/7 - 188.165.199.162:22003

SinCity Gaming | Roleplay Gaming - Beta soon!

SinCity Gaming | Zombie Mode + - 188.165.199.162:22005

Instead of using ip: 188.165.199.162 you can use: sincitygaming.net

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...