Raised This Month: $ Target: $400
 0% 

TSRP item


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tetsoma
Member
Join Date: May 2006
Location: somewhere in my head
Old 06-13-2006 , 22:37   TSRP item
Reply With Quote #1

i want a item that allows you to open any door in the server
why for the cops warrents
__________________


Tetsoma's RP
http://thespecialistsrp.com
i_hate_iburg
tetsoma is offline
Send a message via AIM to tetsoma Send a message via Yahoo to tetsoma
wonsae
Senior Member
Join Date: Jan 2006
Location: Behind you >:D
Old 06-14-2006 , 09:52  
Reply With Quote #2

I already made you this
wonsae is offline
tetsoma
Member
Join Date: May 2006
Location: somewhere in my head
Old 06-14-2006 , 14:49  
Reply With Quote #3

so if i want it to open any door just put item_doorkey <id> "0" insteed of the door name
__________________


Tetsoma's RP
http://thespecialistsrp.com
i_hate_iburg
tetsoma is offline
Send a message via AIM to tetsoma Send a message via Yahoo to tetsoma
awpticaL
Member
Join Date: Jul 2004
Location: EAST US
Old 06-14-2006 , 14:55  
Reply With Quote #4

Quote:
Originally Posted by tetsoma
so if i want it to open any door just put item_doorkey <id> "0" insteed of the door name
Is this true? I'd like to know myself.
__________________
[img]http://img247.**************/img247/1166/userbar414943lj2.gif[/img]
[img]http://img116.**************/img116/527/ownage39ch.jpg[/img]
awpticaL is offline
Send a message via AIM to awpticaL Send a message via MSN to awpticaL
Des12
Senior Member
Join Date: Jan 2005
Old 06-14-2006 , 15:15  
Reply With Quote #5

You need the code first in order for that to work.
__________________
-Dest Romano

www.JustRP.com
A TSRP Server

Quote:
Originally Posted by Brad
Don't you go be bringing reality into this.
Des12 is offline
wonsae
Senior Member
Join Date: Jan 2006
Location: Behind you >:D
Old 06-14-2006 , 16:42  
Reply With Quote #6

The code itself opens anydoors.
wonsae is offline
tetsoma
Member
Join Date: May 2006
Location: somewhere in my head
Old 06-14-2006 , 17:48  
Reply With Quote #7

sweet so then item_doorkey <id> and thats it
__________________


Tetsoma's RP
http://thespecialistsrp.com
i_hate_iburg
tetsoma is offline
Send a message via AIM to tetsoma Send a message via Yahoo to tetsoma
Lord_Destros
Veteran Member
Join Date: Jul 2004
Location: With stupid.
Old 06-14-2006 , 21:52  
Reply With Quote #8

Lol, lucky tetsoma
__________________
Quote:
Originally Posted by Twilight Suzuka
Don't worry m'lord. The turtles day will come.
Lord_Destros is offline
Send a message via AIM to Lord_Destros
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
wonsae
Senior Member
Join Date: Jan 2006
Location: Behind you >:D
Old 06-19-2006 , 13:24  
Reply With Quote #10

I already made him one
wonsae 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 08:09.


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