Raised This Month: $ Target: $400
 0% 

catch player touch the entity model number


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 11-21-2009 , 06:48   catch player touch the entity model number
Reply With Quote #1

hey,

i want to catch the model id & my plugin gives me other id as what i can see in bspviewer.. know anyone why its so ?

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <fakemeta>
#include <fakemeta_stocks>

public plugin_init() 
{
    
register_plugin("haha","huhu""haha")
    
register_touch("trigger_hurt","player","Forward_PlayerTouchRedirect")
}
public 
Forward_PlayerTouchRedirect(id,entmodel[])
{
    new 
test[32];
    
EF_ModelIndex(test)
    
client_print(0,print_chat,"%s",sModel,class,class,test)

model id showed in bsp viewer = *1
plugin outpuu = 214
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 11-21-2009 , 06:55   Re: catch player touch the entity model number
Reply With Quote #2

Code:
#include < amxmodx > #include < engine > public plugin_init( ) {     register_touch( "trigger_hurt", "player", "Forward_TriggerTouch" ); } public Forward_TriggerTouch( iEntity, iClient ) {     static szModel[ 32 ];     entity_get_string( iEntity, EV_SZ_model, szModel, 31 );         if( is_user_alive( iClient ) )     {         client_print( iClient, print_chat, "%s", szModel );     } }
__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 11-21-2009 , 07:01   Re: catch player touch the entity model number
Reply With Quote #3

ty
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
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 13:39.


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