[HELP]How to make points as deathrun?
Hello there as the title I need to know how can I creat points as deathrun,I mean I have menu with weapons which cost money,like that a deagle from my menu cost 500$ it's ok.But I want it to cost points like this,deagle cost 1,2 points,how can I make points as the deathrun shops or etc?
If you can put as more as information you can,because I am still newbie at scripting/coding :) |
Re: [HELP]How to make points as deathrun?
Show what you have done and what kind of points you want.
PHP Code:
Is that what you need? |
Re: [HELP]How to make points as deathrun?
Well I think that I can explain you,you know deathrun shops,there are some VIP extras like "speed"
and for example "speed" costs 20 points,no 20$ or 2000$ 20k$,I need to know how can I create such as points,so when I purchase an item it to takes down from my points,like -1,2. That's my question,but thanks for the answer. |
Re: [HELP]How to make points as deathrun?
No I don't know "deathrun shops" since I haven't played on those servers. But I can help with points.
You can create a array of players for which will hold all players points like this. We assume that this are our 32 players PHP Code:
myMenuItem(id, item) - Where id is a player identificator and item is an integer. case 1: - Is a grenade that costs 500$. PHP Code:
PHP Code:
And our final code will be this. PHP Code:
|
Re: [HELP]How to make points as deathrun?
Ok,but as you said it removes only 500 $ from their money,but what about the points as you typed
PHP Code:
|
Re: [HELP]How to make points as deathrun?
Quote:
Quote:
=========================================== It looks like you didn't understand me well. I'll try to explain my code more clearly. This is the place where points are stored for each player. It's an array that holds points for each of the player on your server. More about arrays here: http://wiki.amxmodx.org/Pawn_Tutorial#Arrays PHP Code:
More about function here: http://wiki.amxmodx.org/Pawn_Tutorial#Functions PHP Code:
More about switch statement: http://wiki.amxmodx.org/Pawn_Tutorial#Switch_Statements PHP Code:
More about if here: http://wiki.amxmodx.org/Pawn_Tutorial#If_Statements PHP Code:
And this is the final part. Buy a grenade only with points. PHP Code:
PHP Code:
|
| All times are GMT -4. The time now is 08:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.