Raised This Month: $12 Target: $400
 3% 

[fun] set_user_hitzones(id,0,0) does not work


  
 
 
Thread Tools Display Modes
Author Message
EKS
Veteran Member
Join Date: Mar 2004
Location: Norway
Old 12-30-2004 , 04:21   [fun] set_user_hitzones(id,0,0) does not work
#1

amx_test1 does not work
But amx_test2 does work

Code:
#include <amxmodx> #include <fun> public plugin_init() {     register_plugin("set_user_hitzone()", "1.0.0" ,"EKS")         register_clcmd("amx_test1","CMD_test1",0," - Enables the menu again")     register_clcmd("amx_test2","CMD_test2",0," - Enables the menu again") } public CMD_test1(id) {      set_user_hitzones(id,0,0)            new Name[32]      get_user_name(id,Name,31)      client_print(0,print_chat,"%s can no longer hit anyone with a gun",Name) } public CMD_test2(id) {      set_user_hitzones(0,id,0)            new Name[32]      get_user_name(id,Name,31)      client_print(0,print_chat,"Nobody can hit %s with their guns",Name) }

From include:
Quote:
/* Sets hit zones for player.
* Parts of body are as bits:
* 1 - generic
* 2 - head
* 4 - chest
* 8 - stomach
* 16 - left arm
* 32 - right arm
* 64 - left leg
* 128 - right leg */
// native set_user_hitzones(index = 0, target = 0, body = 255);

/* Get user hitzones. */
// native get_user_hitzones(index, target);
__________________
Github archive for plugins, the repos for the other c++ projects are there to.
EKS is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 01-03-2005 , 17:45  
#2

In the second one, I think you reset everyones guns to not be hit by ID.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
shadow
Member
Join Date: Apr 2004
Old 01-03-2005 , 20:20  
#3

Just what i say...

http://forums.alliedmods.net/showthread.php?t=8045

cu

shadow
shadow is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 01-13-2005 , 06:03  
#4

Right, finally I got around to look at this. :-)

This is updated now in CVS, you can try this debug build dll to see if it works as expected.

I tried the amx_test1 and amx_test2 and you were right, only amx_test2 worked, but both now works with this fix.
Johnny got his gun is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 01-16-2005 , 11:33  
#5

So, what do you say, any news on this?
Does this fix stuff?
Johnny got his gun is offline
EKS
Veteran Member
Join Date: Mar 2004
Location: Norway
Old 01-16-2005 , 12:24  
#6

I tested on my CZERO server.

When running amx_test1 the command finnishes( IE i see the text that "EKS can no longer hit anyone with a gun" ) and then then HLDS crashes with some error in the fun_amxx.dll
__________________
Github archive for plugins, the repos for the other c++ projects are there to.
EKS is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 01-16-2005 , 12:59  
#7

And with CS?
Johnny got his gun is offline
EKS
Veteran Member
Join Date: Mar 2004
Location: Norway
Old 01-16-2005 , 13:12  
#8

No crash. But i dont have CS bots, so dunno if it worked

EDIT:
On CZERO it crashed with no bots on the server. ( Its running the same exact version of AMXX as on cstrike (i copyed the folder))
__________________
Github archive for plugins, the repos for the other c++ projects are there to.
EKS is offline
EKS
Veteran Member
Join Date: Mar 2004
Location: Norway
Old 01-16-2005 , 15:48  
#9

On another note. The fun dll you gave me crashed my test server when i thouched a func_vehicle. (again czero)
This works like a charm with the old fun module
__________________
Github archive for plugins, the repos for the other c++ projects are there to.
EKS is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 01-16-2005 , 16:41  
#10

Once I get CZERO down again I will test this. Sounds really odd, I only changed a small part. Thx for the info.
Johnny got his gun 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 06:21.


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