Raised This Month: $ Target: $400
 0% 

Doesnt read...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
edgaras85
Senior Member
Join Date: Mar 2010
Location: Lithuania
Old 06-20-2010 , 19:34   Doesnt read...
Reply With Quote #1

PHP Code:
if (Killer == engfuncEngFunc_FindEntityByStringiEntity"classname""trigger_hurt" ))
        {
//my code

Why not reading?
edgaras85 is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 06-20-2010 , 19:36   Re: Doesnt read...
Reply With Quote #2

I'm pretty sure it counts as worldspawn when someone dies by trigger_hurt.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
edgaras85
Senior Member
Join Date: Mar 2010
Location: Lithuania
Old 06-21-2010 , 05:03   Re: Doesnt read...
Reply With Quote #3

Quote:
Originally Posted by wrecked_ View Post
I'm pretty sure it counts as worldspawn when someone dies by trigger_hurt.
i was made like this :
PHP Code:
if (Killer == find_ent_by_class"func_trigger_hurt")
{
//mycode

But it counts all entitys not only trigger hurt...
edgaras85 is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 06-21-2010 , 17:59   Re: Doesnt read...
Reply With Quote #4

Quote:
Originally Posted by wrecked_ View Post
I'm pretty sure it counts as worldspawn when someone dies by trigger_hurt.
?
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 06-21-2010 , 08:15   Re: Doesnt read...
Reply With Quote #5

roflcopteralert! Seriously, you really think that this code will work?
__________________
xPaw is offline
edgaras85
Senior Member
Join Date: Mar 2010
Location: Lithuania
Old 06-21-2010 , 08:35   Re: Doesnt read...
Reply With Quote #6

Quote:
Originally Posted by xPaw View Post
roflcopteralert! Seriously, you really think that this code will work?
Whats wrong?
maybe you have some ideas?
edgaras85 is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 06-21-2010 , 12:14   Re: Doesnt read...
Reply With Quote #7

@xPaw - New avatar :(

So, what you want to do ? -.-'
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
edgaras85
Senior Member
Join Date: Mar 2010
Location: Lithuania
Old 06-21-2010 , 12:20   Re: Doesnt read...
Reply With Quote #8

Quote:
Originally Posted by Alka View Post
@xPaw - New avatar :(

So, what you want to do ? -.-'
Check if killer entity(trigger_hurt)
edgaras85 is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 06-21-2010 , 12:51   Re: Doesnt read...
Reply With Quote #9

Code:
public DeathMsg() {     new Killer = read_data( 1 )     new classname[32]     pev( Killer, pev_classname, classname, 31 )         if( equal( classname, "trigger_hurt" ) )     {         // Keep in mind, this may not be executed since it'll probably         // be worldspawn that's registered as the killer                 // ...     } }
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
edgaras85
Senior Member
Join Date: Mar 2010
Location: Lithuania
Old 06-21-2010 , 13:58   Re: Doesnt read...
Reply With Quote #10

Quote:
Originally Posted by wrecked_ View Post
Code:
public DeathMsg()</p><p>{</p><p>&nbsp;&nbsp;&nbsp;&nbsp;new Killer = read_data( 1 )</p><p>&nbsp;&nbsp;&nbsp;&nbsp;new classname[32]</p><p>&nbsp;&nbsp;&nbsp;&nbsp;pev( Killer, pev_classname, classname, 31 )</p><p>&nbsp;</p><p>&nbsp;&nbsp;&nbsp;&nbsp;if( equal( classname, "trigger_hurt" ) )</p><p>&nbsp;&nbsp;&nbsp;&nbsp;{</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;// Keep in mind, this may not be executed since it'll probably</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;// be worldspawn that's registered as the killer</p><p>&nbsp;</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;// ...</p><p>&nbsp;&nbsp;&nbsp;&nbsp;}</p><p>}
Something like that but still
my code working from all entitys...
like func_door,func_door_rotating
edgaras85 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 14:57.


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