Raised This Month: $51 Target: $400
 12% 

Problem with "register_touch"


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Kushfield
Member
Join Date: Jan 2017
Location: Estonia
Old 11-16-2018 , 12:20   Re: Problem with "register_touch"
Reply With Quote #11

PHP Code:
new bool:g_bTouchedTree[MAX_PLAYERS 1];

public 
client_putinserver(id)
{
    
g_bTouchedTree[id] = false;
}

public 
fwd_touch(w_box,other){
    
    if(!
g_bTouchedTree[other])
    {
        
client_print(other,print_chat,"Touched")
        
g_bTouchedTree[other] = true;
    }
     


Last edited by Kushfield; 11-16-2018 at 12:22. Reason: whoops got it completely wrong
Kushfield is offline
 



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 07:54.


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