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

Armoury Manager


Post New Thread Reply   
 
Thread Tools Display Modes
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 02-16-2016 , 21:56   Re: Armoury Manager
Reply With Quote #41

I tested, still not working. I think you got it wrong...

I said, the weapons that you create (new ones, not the ones already on map), get saved and loaded on server restart normaly.

The ones that are ALREADY on map, and i modify/change them, thats the ones that dont get loaded on server restart.. even tought they appear modifed/changed on am_info...

surf_ski_2 has alot of weapons already placed on map, if i change/modify them, those changes dont get loaded on the next server restart...
Syturi0 is offline
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 02-16-2016 , 21:58   Re: Armoury Manager
Reply With Quote #42

Example:

On surf_ski_2, there are 2 scouts on the first "ramp", if i change/modify them, for example i want them to be AK47, they get changed, but as soon as i restart the server, they appear scouts again... instead of AK47.

But if i do am_info, it says they have changed to AK47.
Syturi0 is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 02-16-2016 , 22:00   Re: Armoury Manager
Reply With Quote #43

I understand your issue.

All weapons on a map are saved to the config file once you make a single change, whether its a creation or change to an existing. Each weapon uses 40 bytes to store in the config file. So if you have 10 entities on a map, it will be 400 bytes, 25 entities will be 1000 bytes.

Your file is 682 bytes. I'm not sure how the size of your file got like that. 682 / 40 = 17.05 which is bad.
__________________

Last edited by Bugsy; 02-17-2016 at 07:12.
Bugsy is offline
smiley92
Senior Member
Join Date: Jun 2011
Location: Romania
Old 06-30-2016 , 08:07   Re: Armoury Manager
Reply With Quote #44

Tested someone this plugin?Is everything ok with him, don't have some errors in logs or to be crashed server from him?
Please an approver to verify this plugin if must be approved.I want to use it, but don't have or server right now to test it in detail.
smiley92 is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 07-12-2016 , 22:40   Re: Armoury Manager
Reply With Quote #45

Update posted.
Code:
 0.3b	More code cleanup. (including fix for 1.8.2 compiler warnings)
 0.3b	Changed number of entities displayed per page to 10 in am_info command. I found this to be a safer value when there are multi long-length weapon names displayed (smoke grenade, vest helmet).
 0.3b	Fixed issue where if a player picked up the last of an armoury item and then the armourmy manager was enabled then disabled, this entity would re-appear with a count of 1.
__________________
Bugsy is offline
Thinker
Junior Member
Join Date: Mar 2015
Old 08-17-2017 , 02:32   Re: Armoury Manager
Reply With Quote #46

Is there any way to set up a shield?
Thinker is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 09-02-2017 , 09:17   Re: Armoury Manager
Reply With Quote #47

Quote:
Originally Posted by Thinker View Post
Is there any way to set up a shield?
No, the shield is not considered an armoury entity. Below are the supported weapons. I suppose it could be done, but it would be basically a lot of manual work to make a weapon entity function like an armoury entity (spawn a new weapon at the location until the count is exhausted). More work than it is worth IMO.

PHP Code:
new const g_ArmouryTypes[][ ArmouryData ] = 
{
    { 
CSW_MP5NAVY "mp5" },
    { 
CSW_TMP "tmp" },
    { 
CSW_P90 "p90" },
    { 
CSW_MAC10 "mac10" },
    { 
CSW_AK47 "ak47" },
    { 
CSW_SG552 "sg552" },
    { 
CSW_M4A1 "m4a1" },
    { 
CSW_AUG "aug" },
    { 
CSW_SCOUT "scout" },
    { 
CSW_G3SG1 "g3sg1" },
    { 
CSW_AWP "awp" },
    { 
CSW_M3 "m3" },
    { 
CSW_XM1014 "xm1014" },
    { 
CSW_M249 "m249" },
    { 
CSW_FLASHBANG "flashbang" },
    { 
CSW_HEGRENADE "he grenade" },
    { 
CSW_VEST "vest" },
    { 
CSW_VESTHELM "vest & helmet" },
    { 
CSW_SMOKEGRENADE "smoke grenade" }
}; 
__________________

Last edited by Bugsy; 09-02-2017 at 09:18.
Bugsy is offline
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 04-21-2019 , 15:59   Re: Armoury Manager
Reply With Quote #48

Is there any limit in number of created this entity?
Can an excessive number of entity cause server crash?
I would use between 20 and 30 depends on the size of the map.
__________________
Check my original plugins for cs 1.6 and subscribe on channel
Look at the video below to see blind grenade for zombies

https://www.youtube.com/watch?v=ORC7ZmoaipQ

Look at the video below to see Zombie Hide And Seek mode

https://www.youtube.com/watch?v=xpyYb65EgGs
Krtola is offline
Send a message via Skype™ to Krtola
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 04-21-2019 , 21:20   Re: Armoury Manager
Reply With Quote #49

You should be fine creating 20-30.
__________________
Bugsy is offline
Godofwar
AlliedModders Donor
Join Date: Dec 2015
Location: Germany
Old 05-10-2019 , 14:58   Re: Armoury Manager
Reply With Quote #50

Plugin crashs my server. I used it and added some guns to fy_iceworld. After mapchange perma Crash. Then disabled the plugin and all works fine. So whats wrong with this plugin for rehlds 1.8.3 ...
Godofwar is offline
Reply


Thread Tools
Display Modes

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:48.


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