Raised This Month: $ Target: $400
 0% 

Touch Problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
satelitegames
Member
Join Date: Nov 2010
Old 02-22-2013 , 14:30   Touch Problem
Reply With Quote #1

Hello, I have a problem in this script, I can not get the touch of the player through the targetname of trigger_multiple.

PHP Code:
public plugin_init(){
    
register_touch("player""trigger_multiple""FwdPlayerTouch");
}

public 
FwdPlayerTouch(iEntityiPlayer){
    new 
iTarget[32];
    
pev(iEntitypev_targetiTarget31 );
    
    if(
equali(iTarget"start_zombies1")){
        
client_print(iPlayerprint_chat"Teste");
    }

already done everything but does not work at targetname, if someone can help me, I'll be grateful ..

Below the print configuration of the trigger:
Print Map: http://i.imgur.com/nG8e1CO.png
__________________





Last edited by satelitegames; 02-22-2013 at 14:35.
satelitegames is offline
simanovich
AlliedModders Donor
Join Date: Jun 2012
Location: Israel
Old 02-22-2013 , 15:23   Re: Touch Problem
Reply With Quote #2

Try: pev_target -> pev_classname
__________________
simanovich is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 02-22-2013 , 17:00   Re: Touch Problem
Reply With Quote #3

Switch "player" and "trigger_multiply" places.
__________________
hleV is offline
satelitegames
Member
Join Date: Nov 2010
Old 02-22-2013 , 17:17   Re: Touch Problem
Reply With Quote #4

Thanks to the 2, but run like the hleV said

Switch "player" and "trigger_multiply" places.


thank you so
__________________




satelitegames 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 21:39.


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