Raised This Month: $ Target: $400
 0% 

+Use to open door


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
blackops7799
Senior Member
Join Date: May 2006
Old 01-23-2007 , 20:43   +Use to open door
Reply With Quote #1

I run a zombie server for TS and I have to remove all the doors in order for the players to get into buildings and stuff.

Then a friend recommended a mod that can open the door on +use.

We both tried making them but we both failed.

This is what I have.


Not sure if I did this right... lol.
Code:
#include <amxmodx> #include <amxmisc> #include <engine> public plugin_init() {     register_plugin("Door Mod", "1", "Jake") } public client_prethink(id) {     new entbody, entid     get_user_aiming(id,entid,entbody,200)     if(entity_get_int(id,EV_INT_button) & IN_USE && !(entity_get_int(id,EV_INT_oldbuttons) & IN_USE))     {         force_use(id,entid)         fake_touch(entid,id)         return PLUGIN_CONTINUE     }     return PLUGIN_CONTINUE }
blackops7799 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 22:24.


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