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

Problem with cs_get_user_mapzones


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ham_Handled
Junior Member
Join Date: Mar 2014
Location: Here
Old 04-13-2014 , 07:51   Problem with cs_get_user_mapzones
Reply With Quote #1

So,I need to check cs_get_user_mapzones to see if a players in a bomb site after bomb planted event.
But,there is a problem:

cs_get_user_mapzones(id) & BIT_BOMB_TARGET will return 0 when the bomb is planted,so I can't check if player is in a bomb site after the bomb planted.

Edit: I fixed this by forcing cs_set_user_plant(index,1) but it isn't the solution that I'm looking for.

Some ideeas ?

Last edited by Arkshine; 04-15-2014 at 03:16.
Ham_Handled is offline
swapped
BANNED
Join Date: Mar 2014
Location: OrpheuRegisterHook
Old 04-15-2014 , 01:52   Re: Problem with cs_get_user_mapzones
Reply With Quote #2

insttand of trash you can post the answer , when users will search for this type of questions why ask everytime insteand of read this THREAD ?
swapped is offline
Ham_Handled
Junior Member
Join Date: Mar 2014
Location: Here
Old 04-15-2014 , 04:47   Re: Problem with cs_get_user_mapzones
Reply With Quote #3

I don't want to post it because is not a good solution and I don't want peoples to use bad code
Ham_Handled is offline
swapped
BANNED
Join Date: Mar 2014
Location: OrpheuRegisterHook
Old 04-15-2014 , 05:14   Re: Problem with cs_get_user_mapzones
Reply With Quote #4

maybe if you check in register touch you touched bombsite entity, ( "func_bomb_target" , "info_bomb_target" )

I also will post some link i finded from a lot of search :

https://forums.alliedmods.net/showthread.php?t=225128
https://forums.alliedmods.net/showthread.php?t=236346
https://forums.alliedmods.net/showthread.php?p=681655
https://forums.alliedmods.net/showthread.php?p=401213

Last edited by swapped; 04-15-2014 at 05:16.
swapped is offline
Ham_Handled
Junior Member
Join Date: Mar 2014
Location: Here
Old 04-15-2014 , 05:21   Re: Problem with cs_get_user_mapzones
Reply With Quote #5

Thx, I'll check all of them.
Ham_Handled 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 23:31.


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