Raised This Month: $ Target: $400
 0% 

TSRP item


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Smokey485
Senior Member
Join Date: Dec 2004
Location: Newt 'Ellin
Old 06-19-2006 , 12:59  
Reply With Quote #9

If you do amx_doorkey <id> "0" that wouldn't work, if you would really like, here

Code:
// add this to plugin_init() server_cmd("item_doorkey","item_doorkey") // add this to the code public item_doorkey() {    new arg[32];    read_argv(id,arg,31)    new id = str_to_num(arg)    new door, hitbox, maxplayers = get_maxplayers()    get_user_aiming(id,door,hitbox,9999) // get the aiming    if(door > get_maxplayers())    {        //entity_get_string(iIndex, iKey, szReturn[], iRetLen);        new classname[32]        entity_get_string(door,EV_SZ_classname,classname,31)        if(equali(classname,"func_door") || equali(classname,"func_door_rotating" || equali(classname,"func_button"))        {            force_use(id,door)            fake_touch(door,id)            client_print(id,print_chat,"[DOOR] You have opened/closed the door!")        }    } }
and to use this, just make an item and have its cmd be item_doorkey <id>
__________________
+karma if I am helpful to you.
I am one in a few million.
Smokey485 is offline
Send a message via AIM to Smokey485 Send a message via MSN to Smokey485
 



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 08:09.


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