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 > 0 && pToucher < 33 && is_user_alive(pToucher) )
{
// open the menu for toucher.
}
if (pTouched > 0 && 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.
__________________