AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Touch Problem (https://forums.alliedmods.net/showthread.php?t=209204)

satelitegames 02-22-2013 14:30

Touch Problem
 
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

simanovich 02-22-2013 15:23

Re: Touch Problem
 
Try: pev_target -> pev_classname

hleV 02-22-2013 17:00

Re: Touch Problem
 
Switch "player" and "trigger_multiply" places.

satelitegames 02-22-2013 17:17

Re: Touch Problem
 
Thanks to the 2, but run like the hleV said

Switch "player" and "trigger_multiply" places.


thank you so :)


All times are GMT -4. The time now is 21:39.

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