Raised This Month: $ Target: $400
 0% 

Player contact


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 01-23-2013 , 11:47   Player contact
Reply With Quote #1

How can I get if player has contact(hits with body) other player?
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness
GuskiS is offline
Torge
Veteran Member
Join Date: Oct 2011
Old 01-23-2013 , 12:41   Re: Player contact
Reply With Quote #2

Quote:
Originally Posted by GuskiS View Post
How can I get if player has contact(hits with body) other player?
You mean touching?
Torge is offline
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 01-23-2013 , 15:23   Re: Player contact
Reply With Quote #3

Yea, but not with knife or anything like that.
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness
GuskiS is offline
Podarok
BANNED
Join Date: Jan 2011
Location: Narnia
Old 01-23-2013 , 15:53   Re: Player contact
Reply With Quote #4

Uzraksti @ skype : leoalex777

EDIT : Izmanto pfn_touch vai register_touch

Last edited by Podarok; 01-23-2013 at 15:57.
Podarok is offline
Torge
Veteran Member
Join Date: Oct 2011
Old 01-23-2013 , 15:58   Re: Player contact
Reply With Quote #5

This?

PHP Code:
#include <amxmodx>
#include <fakemeta>

public plugin_init()
{
    
register_forward(FM_Touch"fw_Touch");
}

public 
fw_Touch(enttouched)
{
    new 
szClassname[32];
    
pev(entpev_classnameszClassnamecharsmax(szClassname));
    
    if (
equal(szClassname"player"))
    {
        
// do something
    
}

Torge is offline
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 01-23-2013 , 17:29   Re: Player contact
Reply With Quote #6

Thanks guys, the thing I have been looking
Paldies.
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness
GuskiS 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 20:30.


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