jdf318 Posted September 30, 2008 Author Share Posted September 30, 2008 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) :P1\. 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 More sharing options...
DrNova Posted September 30, 2008 Share Posted September 30, 2008 use .ini's, and the getvar and putvar scripting commands, and modify the pvp death sub to give the points to the (attacker) Link to comment Share on other sites More sharing options...
shadowwulf Posted September 30, 2008 Share Posted September 30, 2008 are you talking about the points for making stats go up?just in the pvp death sub setplayerpoints(index, getplayerpoints(index)+1) Link to comment Share on other sites More sharing options...
jdf318 Posted September 30, 2008 Author Share Posted September 30, 2008 thanks DrNova (even if i hate .inis, putar, and getvar, though i knew i would have to use them :P), and i meant points for special classes,not skill points Shadowwulf. Though i never even knew about the pvp death sub.. (must of skipped over it) Link to comment Share on other sites More sharing options...
AdrianC Posted September 30, 2008 Share Posted September 30, 2008 why do you hate putvars, they are easyPutVar("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 VariableYou could goDim xx = GetVar("File.ini", getplayername(index), "Variable Name")I love inis… Link to comment Share on other sites More sharing options...
DrNova Posted September 30, 2008 Share Posted September 30, 2008 I'm an .INI whore Link to comment Share on other sites More sharing options...
jdf318 Posted September 30, 2008 Author Share Posted September 30, 2008 Eh, people tend to hate that which they are ignorant of. :) thanks for the help, really appreciate it. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now