Raised This Month: $ Target: $400
 0% 

buy defuser "hack"


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
commonbullet
Veteran Member
Join Date: Oct 2005
Old 07-24-2007 , 15:13   buy defuser "hack"
Reply With Quote #1

Is there a way to enable defuser kit on maps that blocks it?

That's for a request, someone wants to transform a cs map into a de. It's working except for the defuser kit:
http://forums.alliedmods.net/showpos...0&postcount=21
commonbullet is offline
Send a message via ICQ to commonbullet Send a message via MSN to commonbullet
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 07-24-2007 , 15:17   Re: buy defuser "hack"
Reply With Quote #2

I Think
Code:
cs_set_user_defuse(id, 1)
will work! ...;)
Must create a command "/buydefuse" or something...
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
commonbullet
Veteran Member
Join Date: Oct 2005
Old 07-24-2007 , 15:34   Re: buy defuser "hack"
Reply With Quote #3

I was trying to enable it in buy menu, that's a last option..., thanks.

Last edited by commonbullet; 07-24-2007 at 15:38.
commonbullet is offline
Send a message via ICQ to commonbullet Send a message via MSN to commonbullet
potatis_invalido
BANNED
Join Date: Jul 2007
Location: 0 (world)
Old 07-24-2007 , 23:20   Re: buy defuser "hack"
Reply With Quote #4

Make bomb zones at the start of the new map.
potatis_invalido is offline
commonbullet
Veteran Member
Join Date: Oct 2005
Old 07-25-2007 , 10:49   Re: buy defuser "hack"
Reply With Quote #5

They're already being created in precache.
commonbullet is offline
Send a message via ICQ to commonbullet Send a message via MSN to commonbullet
VEN
Veteran Member
Join Date: Jan 2005
Old 07-25-2007 , 12:28   Re: buy defuser "hack"
Reply With Quote #6

Code:
public plugin_precache() {         register_forward(FM_KeyValue, "fwKeyValue") } public fwKeyValue() {           static bool:x         if(!x) {                 x = true                 engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "func_bomb_target"))         } }
or
Code:
public plugin_precache() {         engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "func_bomb_target")) }
works fine.

Last edited by VEN; 07-25-2007 at 12:31.
VEN is offline
commonbullet
Veteran Member
Join Date: Oct 2005
Old 07-25-2007 , 12:58   Re: buy defuser "hack"
Reply With Quote #7

That's very similar to what I'm doing:
Code:
[...] public fw_keyvalue(entid, kvdid) {           new keyname[16]     get_kvd(kvdid, KV_KeyName, keyname, 15)     if(!g_BombAdded) {                 g_BombAdded = true                 for(new i = 0; i < 2; i++)                      g_MapBomb[i] = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "func_bomb_target"))                             }     [...] }

check the full script

Bomb sites are created and bomb planting/defusuing is ok, but cts still can't buy the defuser...

I've also tried to replace "hostage_entity" for "info_bomb_target" but the problem will still remain.
commonbullet is offline
Send a message via ICQ to commonbullet Send a message via MSN to commonbullet
VEN
Veteran Member
Join Date: Jan 2005
Old 07-25-2007 , 13:32   Re: buy defuser "hack"
Reply With Quote #8

Yes i checked your code and that's why i posted KeyValue version of snippet too. Try my snippets and report if one of them is work for you.
VEN is offline
commonbullet
Veteran Member
Join Date: Oct 2005
Old 07-25-2007 , 21:10   Re: buy defuser "hack"
Reply With Quote #9

Well, I guessed the plugin was already doing that (?).
Anyway, I've tried both snippets by adding them in my script or running as a separate plugin.
The result is the same - defuser kit is still locked in buy menu.

Last edited by commonbullet; 07-25-2007 at 21:13.
commonbullet is offline
Send a message via ICQ to commonbullet Send a message via MSN to commonbullet
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 21:26.


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