View Single Post
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-27-2014 , 10:49   Re: Custom Command Block v1.2
Reply With Quote #18

Quote:
ou use it may times, it would be better to make it constant.
It likely doesn't matter.

Quote:
There are better ways for removing the buyzone like doing it in pfn_keyvalue forward.
You should explain why it's better.
Current method is not that bad, but it disregards bombradius parameter which could be unwanted if a specific value is defined. Basically the logic needs to be improved. Ideally, this should check if such info_map_parameters exists, and if so, altering "buying" value. Something which could be achieved either by changing key value or setting directly m_iBuyingStatus offset. Considering you do that one time, I would simply check with find_ent_by_class, and if entity exists, I use the offset, otherwise, I create a new entity.
__________________
Arkshine is offline