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

Solved box menu bug


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Suntox
Member
Join Date: Nov 2016
Old 11-26-2017 , 17:13   box menu bug
Reply With Quote #1

fixed.

Last edited by Suntox; 11-27-2017 at 15:42.
Suntox is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 11-27-2017 , 11:45   Re: box menu bug
Reply With Quote #2

enable friendly fire and hook Ham_TakeDamage. and use this check:
PHP Code:
public ham_TakeDamage(victiminflictorattackerFloat:damagedamagebits

    if(
get_user_team(attacker) == && get_user_team(victim) == 2)
        return 
HAM_SUPERCEDE
    
return HAM_IGNORED

__________________
retired chump

Last edited by DjSoftero; 11-27-2017 at 11:55.
DjSoftero is offline
TheWhitesmith
Senior Member
Join Date: Oct 2017
Location: Morocco :c
Old 11-27-2017 , 12:33   Re: box menu bug
Reply With Quote #3

Because I know you, I know you wont know how to make it work. Add DjSoftero at the bottom of your code, then go ahead to
PHP Code:
public plugin_init() 
and Add this
PHP Code:
RegisterHam(Ham_TakeDamage"player""ham_TakeDamage"
Also, it's unnecessary to check if the user is connected and alive, just check if he's alive then go ahead (cmdBox( id ))
__________________

Last edited by TheWhitesmith; 11-27-2017 at 12:34.
TheWhitesmith is offline
Suntox
Member
Join Date: Nov 2016
Old 11-27-2017 , 13:17   Re: box menu bug
Reply With Quote #4

thanks DjSoftero & TheWhitesmith.
Suntox is offline
TheWhitesmith
Senior Member
Join Date: Oct 2017
Location: Morocco :c
Old 11-27-2017 , 15:58   Re: box menu bug
Reply With Quote #5

Please dont edit thread after receiving Help, because others may need the same help and they will have to make another thread. Just saying.
__________________
TheWhitesmith 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 07:34.


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