Raised This Month: $ Target: $400
 0% 

wanna know more about register_touch


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 06-24-2009 , 18:35   wanna know more about register_touch
Reply With Quote #1

what i found in func is not so realy helpfull.
i wanna do a menu when player touchs other player.

PHP Code:
register_touch("player","player","touch_function")

public 
touch_function(ptoucher,ptouched)
{
if(
pToucher && pToucher 33 && is_user_alive(pToucher) )
{
// open the menu for toucher.
}
if (
pTouched && pTouched 33 && is_user_alive(pTouched) )
{
//open the menu for touched

is it right so ? what i want is to make a duel menu. when player touch other, a menu willbe opened, to ask : u wanna fight with "playername" ?
yes
no

this willbe opened for both users, if both accept the fight begins. else, happend nothing.
__________________
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
 


Thread Tools
Display Modes

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 15:27.


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