Raised This Month: $ Target: $400
 0% 

uc_buttons help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
akcaliberg
Senior Member
Join Date: Nov 2011
Location: Istanbul
Old 12-26-2013 , 12:29   Re: uc_buttons help
Reply With Quote #1

There is not "uc_button" for that. You should just register the "drop" command as a client command.

register_clcmd("drop","HookDrop");
akcaliberg is offline
ezio_auditore
Senior Member
Join Date: May 2013
Old 12-27-2013 , 06:56   Re: uc_buttons help
Reply With Quote #2

Quote:
Originally Posted by akcaliberg View Post
There is not "uc_button" for that. You should just register the "drop" command as a client command.

register_clcmd("drop","HookDrop");

but suppose if user is holding CSW_M4A1, how can i avoid user to drop it
__________________
ezio_auditore is offline
Send a message via Skype™ to ezio_auditore
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-27-2013 , 11:34   Re: uc_buttons help
Reply With Quote #3

Hook Ham_CS_CanDrop or however the function is called (last word is CanDrop for sure), return FALSE and supercede it when the item type is CSW_M4A1.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 10:12.


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