Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Adding points


jdf318
 Share

Recommended Posts

Hey, would it be possible to make a script, where once someone is killed by another player, it adds a "point" to the player? I would need these points to be used with a custom menu, and when the player selects an option, it takes away the point and allows them to advance. A couple of questions (besides the one above) :P

1\. Would i need the points to be items in the inventory (id rather them not, but I believe not making them items would involve the source code)

2\. would i need the source code to make them not items?

3\. How would i go about doing this (I don't want a code, just some instruction on the general way of accomplishing this)

and, 4\. If they were items, could i insert them directly into a players inventory so players couldn't rob points.

Thanks in advance
  Jdf318
Link to comment
Share on other sites

why do you hate putvars, they are easy

PutVar("File.ini", Header (You could use getplayername(index) to make a header for each player), "Variable Name", Value you want stored in Variable Name)

GetVar is the same as putvar, except you don't give the value of the Variable

You could go

Dim x
x = GetVar("File.ini", getplayername(index), "Variable Name")

I love inis…
Link to comment
Share on other sites

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
 Share

×
×
  • Create New...