Raised This Month: $ Target: $400
 0% 

prevent damage.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Flynn
Senior Member
Join Date: Sep 2009
Old 10-01-2009 , 02:31   Re: prevent damage.
Reply With Quote #1

Quote:
Originally Posted by meng View Post
Hmmm, just tried it. still doesnt seem to fire player_hurt. or if it does, theres no info passed.
Don't take this as a personal attack or anything (just trying to address a problem), but it strikes me a lot of events you use don't seem to fire. Are you sure you know how to correctly setup an event to fire?

Could I have an example from one of your event setups?

Last edited by Flynn; 10-01-2009 at 02:34.
Flynn is offline
Send a message via MSN to Flynn Send a message via Skype™ to Flynn
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 10-02-2009 , 18:24   Re: prevent damage.
Reply With Quote #2

Quote:
Originally Posted by Flynn View Post
Don't take this as a personal attack or anything (just trying to address a problem), but it strikes me a lot of events you use don't seem to fire. Are you sure you know how to correctly setup an event to fire?

Could I have an example from one of your event setups?

you want example of events firing go plant the bomb and watch it blow up theirs about 3 events involved with just that
Doc-Holiday is offline
meng
Veteran Member
Join Date: Oct 2005
Location: us
Old 10-08-2009 , 11:27   Re: prevent damage.
Reply With Quote #3

Quote:
Originally Posted by Flynn View Post
Don't take this as a personal attack or anything (just trying to address a problem), but it strikes me a lot of events you use don't seem to fire. Are you sure you know how to correctly setup an event to fire?

Could I have an example from one of your event setups?
yea, its all good.

i used this to test if getting killed by the bomb passed along something i can use. it printed info for every death. but getting killed by the bomb didnt print anything.
PHP Code:
public OnPluginStart()
{
    
HookEvent("player_death"EventPlayerDeath);
}

public 
EventPlayerDeath(Handle:event,const String:name[],bool:dontBroadcast)
{
    new 
attacker GetClientOfUserId(GetEventInt(event,"attacker"));
    new 
String:WeaponName[32];
    
GetEventString(event"weapon"WeaponNamesizeof(WeaponName));
    
PrintToChatAll("weapon %s"WeaponName);
    
PrintToChatAll("attacker %d"attacker);

as for testing SetEntProp(client, Prop_Data, "m_takedamage", 1, 1);

i plugged it into an already working plugin where i simply give the players hp back. but it broke the plugin. none of the actions taken on player_hurt worked.
meng is offline
Send a message via Yahoo to meng
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 18:21.


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