Raised This Month: $ Target: $400
 0% 

Always?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RuleBreaker
Senior Member
Join Date: May 2011
Old 07-13-2011 , 18:02   Always?
Reply With Quote #1

How to make something that`ll be always...for example that plugin will slay you if you have lower than 50hp....so it needs to check you all the time
RuleBreaker is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 07-13-2011 , 18:05   Re: Always?
Reply With Quote #2

you can have it check on takedamage if the players health is less then 50 then slay
Doc-Holiday is offline
RuleBreaker
Senior Member
Join Date: May 2011
Old 07-13-2011 , 18:07   Re: Always?
Reply With Quote #3

But how? I know how to make it with command....
RuleBreaker is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 07-13-2011 , 18:08   Re: Always?
Reply With Quote #4

Quote:
Originally Posted by RuleBreaker View Post
But how? I know how to make it with command....
search for it.

Ham_TakeDamage
Doc-Holiday is offline
RuleBreaker
Senior Member
Join Date: May 2011
Old 07-13-2011 , 18:13   Re: Always?
Reply With Quote #5

That was just example...i want to learn how to:
slay someine when he has lower than 50dmg
kick someone when he has ak47
....
it was just example
RuleBreaker is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-14-2011 , 00:07   Re: Always?
Reply With Quote #6

Quote:
Originally Posted by RuleBreaker View Post
That was just example...i want to learn how to:
slay someine when he has lower than 50dmg
kick someone when he has ak47
....
it was just example
The answer is dependent on what you are doing. There is no magical code to do everything.
__________________
fysiks is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 07-13-2011 , 18:38   Re: Always?
Reply With Quote #7

i dont understand what your talking about
Doc-Holiday is offline
RuleBreaker
Senior Member
Join Date: May 2011
Old 07-14-2011 , 03:50   Re: Always?
Reply With Quote #8

Ok, I want to check how many ammo someone has and then to do something to him.
RuleBreaker is offline
Erox902
Veteran Member
Join Date: Jun 2009
Location: Never Never Land
Old 07-14-2011 , 13:57   Re: Always?
Reply With Quote #9

PHP Code:
native cs_get_weapon_ammo(index); 
PHP Code:
native cs_get_user_bpammo(indexweapon); 
like:
PHP Code:
if( cs_get_weapon_ammo >= 30 )
{
    
//do something to him 
Erox902 is offline
Kreation
Veteran Member
Join Date: Jan 2010
Location: Illinois
Old 07-14-2011 , 16:14   Re: Always?
Reply With Quote #10

Quote:
Originally Posted by Erox902 View Post
PHP Code:
native cs_get_weapon_ammo(index); 
PHP Code:
native cs_get_user_bpammo(indexweapon); 
like:
PHP Code:
if( cs_get_weapon_ammo >= 30 )
{
    
//do something to him 
if( cs_get_weapon_ammo(index) >= 30 )

You also might want to explain to him what index that is, he probably thinks it's a player index.
__________________
Hi.
Kreation 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 00:53.


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