Raised This Month: $ Target: $400
 0% 

How to *check* if player is touched something?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
vip-colgate
Junior Member
Join Date: Jan 2010
Location: Game World
Old 07-19-2013 , 12:24   How to *check* if player is touched something?
Reply With Quote #1

Is it possible to check if player is touched something?
Just like this. . .
Code:
IsTouched( player, touched )
But I can not find a similar function.

Does anyone know ways to check?

Thanks in advance.
__________________

Last edited by vip-colgate; 07-19-2013 at 12:26.
vip-colgate is offline
avril-lavigne
Banned
Join Date: Apr 2009
Old 07-19-2013 , 15:20   Re: How to *check* if player is touched something?
Reply With Quote #2

entity to entity = pfn_touch

if just player use this my small plugin for admins


PHP Code:
public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_touch("player","player","function")
}

public function(
player1,player2) {
           if(
cs_get_user_team(player1) != cs_get_user_team(player2)) return
           if(
get_user_flags(player1) & ADMIN_RESERVATION)
           
user_slap(player2,1)


if player is touching an admin, he is slapping with 1 dmg.
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc

Last edited by avril-lavigne; 07-19-2013 at 15:22.
avril-lavigne 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 06:21.


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