Raised This Month: $51 Target: $400
 12% 

Need help for powers code


Post New Thread Reply   
 
Thread Tools Display Modes
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 01-03-2018 , 16:18   Re: Need help for powers code
Reply With Quote #21

laster TbagT umbrella infection
https://www.youtube.com/watch?v=UA-vbfVF8AY
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
Mr.J
Senior Member
Join Date: Sep 2017
Location: cs_assault
Old 01-03-2018 , 16:56   Re: Need help for powers code
Reply With Quote #22

Quote:
Originally Posted by D3XT3R View Post
ithis not the full code and i already posted the full one and also for umbrella swarm game mod you should make the reg hp power work for CT Only as in my servers
Give me the code , is it : if(cs_get_user_team(id) == CS_TEAM_CT) or what ?? give me code to modify

Quote:
Originally Posted by D3XT3R View Post
laster TbagT umbrella infection
https://www.youtube.com/watch?v=UA-vbfVF8AY
Umbrella Swarm better (have many class) and he already created it, and isnt this mod like zombie infection? or zombie plague ? its same also ,zp have those class .He added new effects . (wrong hand of Tank) its for other tank (fat zombie) ,what are this project ? its seems need more class. i can be approver .
and what are the code of spit and voomit (they are intresting)?

Last edited by Mr.J; 01-04-2018 at 05:21.
Mr.J is offline
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 01-04-2018 , 09:43   Re: Need help for powers code
Reply With Quote #23

just hier is the code to work for CT Only
Code:
public AddHealth(id) {     if(!is_user_alive(id)) {         return;     }         if(cs_get_user_team(id) == CS_TEAM_CT)     {         set_user_health(id, get_user_health(id) + (20*HealthLevel[id]))               if(get_user_health(id) > 100.0)             MaxHealth[id] = get_user_health(id)                   else             MaxHealth[id] = 100                   Refreshing[id] = false     } }
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 01-04-2018 , 11:17   Re: Need help for powers code
Reply With Quote #24

HealthLevel can never be lower than 0. You're statement-ing stuff for no reason. Also MaxHealth is useless here. Use get_user_health(). Before executing AddHealth, better check inside X func. for is_user_alive(). (Except the func. that's calling AddHealth is a Menu)
__________________
Relaxing is offline
Old 01-04-2018, 13:38
Mr.J
This message has been deleted by Mr.J.
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 01-04-2018 , 15:32   Re: Need help for powers code
Reply With Quote #25

Quote:
Originally Posted by Relaxing View Post
HealthLevel can never be lower than 0. You're statement-ing stuff for no reason. Also MaxHealth is useless here. Use get_user_health(). Before executing AddHealth, better check inside X func. for is_user_alive(). (Except the func. that's calling AddHealth is a Menu)
You stupid, maxhealth added to check for health power so if the max health when spawn is 100 so power will work under 100- but when max health is 200 if player was using health power so reg hp power will work under 200- STupid
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 01-04-2018 , 15:32   Re: Need help for powers code
Reply With Quote #26

understand the code first then post
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 01-04-2018 , 16:04   Re: Need help for powers code
Reply With Quote #27

Dextar, the one who created a 60million lines of code @ facebook.
The code is setting MaxHealth at 100. Then after 0.1 sec. after that the code sets health to the current player that depends on the level OF the player. Here's some deep thinking(actually for you, its my fault who explains this to you, you still an empty canister, as always)
Execute maxhealth equality to 100 at spawn. This is a total bullshit.
Set health after 0.1 seconds, depending on players' level, x20, keep reading.
Then it checks if players health is more than 100, using this statement for level 1+ players, and setting its maxhealth to the current health. This is a total bullshit. Excepted things.
Then the code checks after 0.1 sec. of user spawn, if its health is lower than 100. A total bullshit too.
Bool sets true on spawn, after 0.1 sec. it retreats on false.
NeverEndingRegen() is total bullshit.
GetAuthId() - nonsteam bullshit. VALVE_?
On resetting stuff define a RESET_VALUE to 0 and set all arrays in a line to 0. You're just.overbullshiting stuff.
get_user_health() isn't a float number.
You have full rights to say that this isn't my code, but you're trying to act like a lord at scripting(you are actually, stealing scripts and claiming then as own).
__________________

Last edited by Relaxing; 01-04-2018 at 16:05. Reason: i don't know why I'm doing this.
Relaxing is offline
Mr.J
Senior Member
Join Date: Sep 2017
Location: cs_assault
Old 01-05-2018 , 03:27   Re: Need help for powers code
Reply With Quote #28

Is this code right ???
plz can anyone config it dexter or relaxing ? im using umbrella swarm( TbagT mod ) mod without inc file.
i gived full code , is it worng ? or if it right , can anyone fix it
Mr.J is offline
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 01-05-2018 , 05:52   Re: Need help for powers code
Reply With Quote #29

Quote:
Originally Posted by Relaxing View Post
Dextar, the one who created a 60million lines of code @ facebook.
The code is setting MaxHealth at 100. Then after 0.1 sec. after that the code sets health to the current player that depends on the level OF the player. Here's some deep thinking(actually for you, its my fault who explains this to you, you still an empty canister, as always)
Execute maxhealth equality to 100 at spawn. This is a total bullshit.
Set health after 0.1 seconds, depending on players' level, x20, keep reading.
Then it checks if players health is more than 100, using this statement for level 1+ players, and setting its maxhealth to the current health. This is a total bullshit. Excepted things.
Then the code checks after 0.1 sec. of user spawn, if its health is lower than 100. A total bullshit too.
Bool sets true on spawn, after 0.1 sec. it retreats on false.
NeverEndingRegen() is total bullshit.
GetAuthId() - nonsteam bullshit. VALVE_?
On resetting stuff define a RESET_VALUE to 0 and set all arrays in a line to 0. You're just.overbullshiting stuff.
get_user_health() isn't a float number.
You have full rights to say that this isn't my code, but you're trying to act like a lord at scripting(you are actually, stealing scripts and claiming then as own).
Ok you right and im wroung, i wont fight with a stuipid
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
Mr.J
Senior Member
Join Date: Sep 2017
Location: cs_assault
Old 01-05-2018 , 07:41   Re: Need help for powers code
Reply With Quote #30

Quote:
Originally Posted by D3XT3R View Post
Ok you right and im wroung, i wont fight with a stuipid
Can we stop plz guys , this thread for help not for fight
Mr.J is offline
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 10:42.


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