Raised This Month: $ Target: $400
 0% 

Infinitive Levels & *0.1


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Troi
Member
Join Date: Aug 2006
Old 04-10-2007 , 05:58   Infinitive Levels & *0.1
Reply With Quote #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
Troi is offline
unikow
Member
Join Date: Mar 2007
Old 04-10-2007 , 09:19   Re: Infinitive Levels & *0.1
Reply With Quote #2

sma??
__________________
unikow is offline
mogel
Senior Member
Join Date: Jan 2007
Old 04-10-2007 , 10:04   Re: Infinitive Levels & *0.1
Reply With Quote #3

Moin,

Quote:
Originally Posted by Troi View Post
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.
Code:
1000 * power(2, level - 1)
Quote:
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..
Code:
100 + (level - 1) * 100
hand, mogel
__________________
mogel is offline
Troi
Member
Join Date: Aug 2006
Old 04-10-2007 , 17:23   Re: Infinitive Levels & *0.1
Reply With Quote #4

I even dont imagine how to make a "level" .......atleast one..
Troi is offline
pRED*
Join Date: Dec 2006
Old 04-10-2007 , 17:26   Re: Infinitive Levels & *0.1
Reply With Quote #5

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..
pRED* is offline
Troi
Member
Join Date: Aug 2006
Old 04-11-2007 , 15:40   Re: Infinitive Levels & *0.1
Reply With Quote #6

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?
Troi is offline
pRED*
Join Date: Dec 2006
Old 04-11-2007 , 22:49   Re: Infinitive Levels & *0.1
Reply With Quote #7

http://www.amxmodx.org/funcwiki.php?go=func&id=919
pRED* is offline
Troi
Member
Join Date: Aug 2006
Old 04-12-2007 , 00:47   Re: Infinitive Levels & *0.1
Reply With Quote #8

THANKS A LOT! Ill try..
Troi is offline
Troi
Member
Join Date: Aug 2006
Old 04-12-2007 , 08:11   Re: Infinitive Levels & *0.1
Reply With Quote #9

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)
}
Troi is offline
soccdoodcss
Veteran Member
Join Date: Nov 2006
Location: Wisconsin
Old 04-12-2007 , 16:46   Re: Infinitive Levels & *0.1
Reply With Quote #10

www.amxmodx.org
Click functions on the left side. Search your function, click it, and it will tell you what you need.
__________________
"Now safe beneath their wisdom and their feet.
Here I will teach you truly how to sleep."
soccdoodcss is offline
Send a message via AIM to soccdoodcss
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:36.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode