Infinitive Levels & *0.1
Hi, making a mod with levels, 1 race, need much help with fake damage. For exemple, 1 hit to enemy gives a 250xp for player, 1 hit to head gives 500xp for player, first level is till 1000xp, second 2000xp third 4000 etc.. always x2xp but that i could not write it. It must calculate it self how many xp has player to the next level.
It should have a some specials, like fster moving, fake damage, more Hp etc. and each level everythink should be x1.1 if 100 on first level, on the second should be 110.... etc.. Thanks for Help |
Re: Infinitive Levels & *0.1
sma??
|
Re: Infinitive Levels & *0.1
Moin,
Quote:
Code:
1000 * power(2, level - 1)Quote:
Code:
100 + (level - 1) * 100 |
Re: Infinitive Levels & *0.1
I even dont imagine how to make a "level" .......atleast one..
|
Re: Infinitive Levels & *0.1
I think you should try making a post in suggestions/requests instead of here.
Coding help is for a specific problem you are having with the code you are writing. If you want someone to write an entire xp plugin than you're looking in the wrong place. And getting someone to make an xp mod to order would be pretty impressive imo... Bf2 mod (in my sig) took way too many hours (50+ probably so far...) to make and I definately wouldn't make another from scratch as a request.. |
Re: Infinitive Levels & *0.1
OK, Ive got something, so, there is a question.... Is possible thing?
Grabing "Hits" from cs statx... It should look like that princip =D "get_user_hits_from_csstatx" public xp(player) { if(get_user_hits_from_csstatx(player) < 1000) { client_print(player, print_chat, "Your level is 5") } else { if(get_user_hits_from_csstatx(player) < 2000) { client_print(player, print_chat, "Your level is 6") } else { if(get_ ........ etc.) { } } .... Is "player" index is using when you want to do all of lines only for that client? |
Re: Infinitive Levels & *0.1
|
Re: Infinitive Levels & *0.1
THANKS A LOT! Ill try.. :up:
|
Re: Infinitive Levels & *0.1
How to use "get_" command lines??????
if(get_user_weapon( ??????????????????????? what else? I need for example: If player dont have the grenade then { give_item(id, "weapon_hegrenade") } else { client_print(id, print_chat, "You already have one") } so what about "get_stats" ?? public hp(id) { if(get_stats(id, "HITS") < 100) { client_print(id, print_chat, "You are not skilled enough") } else { set_user_health(id, 150) } } like.. if(get_user_health(id) == 100) { something happends(id) } |
Re: Infinitive Levels & *0.1
www.amxmodx.org
Click functions on the left side. Search your function, click it, and it will tell you what you need. |
| All times are GMT -4. The time now is 06:36. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.