Raised This Month: $32 Target: $400
 8% 

Open/Close Close


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ComedyShotsGamer
Senior Member
Join Date: Mar 2016
Old 11-21-2017 , 13:05   Open/Close Close
Reply With Quote #1

PHP Code:
public jail_open()
{
        static 
i
        
for(0sizeof(g_Buttons); i++)
        {
                if(
g_Buttons[i])
                {
                        
ExecuteHamB(Ham_Useg_Buttons[i], 0011.0)
                        
entity_set_float(g_Buttons[i], EV_FL_frame0.0)
                }
        }

Its the code for opening cells on jail_ and jb_ maps. Anyone knows how to close them too ;p?
ComedyShotsGamer is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 11-21-2017 , 17:28   Re: Open/Close Close
Reply With Quote #2

Wrong section. I believe you need to change the 1 to 0 in Ham_Use. You can see what each argument does, check the API.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
TheWhitesmith
Senior Member
Join Date: Oct 2017
Location: Morocco :c
Old 11-21-2017 , 17:38   Re: Open/Close Close
Reply With Quote #3

For some maps, I dont think you can (at least by using Ham_Use, an example is jail_summer_remix, where doors have to close by themselves and you can't use their button to close them). For others, just use the command for oppening doors again.
TheWhitesmith is offline
Reply


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 06:25.


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