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

Hostage Protection[ V 1.8 ]


Post New Thread Reply   
 
Thread Tools Display Modes
gui1porpis
Member
Join Date: Jan 2009
Location: Brodowski, SP, Brazil
Old 12-02-2014 , 09:41   Re: Hostage Protection[ V 1.7 ]
Reply With Quote #41

Support AMXBans?
----EDIT----
I have problems to compile the plugin ...
Error on line 134. See the attachment.

Thank you.
Attached Thumbnails
Click image for larger version

Name:	bug-compile.png
Views:	162
Size:	36.7 KB
ID:	140404  
__________________

Last edited by gui1porpis; 12-02-2014 at 10:05. Reason: Bug compiler
gui1porpis is offline
Send a message via MSN to gui1porpis Send a message via Skype™ to gui1porpis
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-02-2014 , 10:59   Re: Hostage Protection[ V 1.7 ]
Reply With Quote #42

Compiles fine with online compiler, and also on my pc. Maybe you are trying to compile with amxmodx 1.8.3 and it's a build that doesn't have get_map_objectives native.

Can you detail more about amx bans ? What kind of compatibility do you need ?
__________________

Last edited by HamletEagle; 12-02-2014 at 10:59.
HamletEagle is offline
gui1porpis
Member
Join Date: Jan 2009
Location: Brodowski, SP, Brazil
Old 12-02-2014 , 13:13   Re: Hostage Protection[ V 1.7 ]
Reply With Quote #43

Yes I am using amxx compiler 1.8.3-dev, and would build for him?
Note: I'm using version 0.4 and it was compiled by amxx 1.8.3-dev smoothly.

About AMXBans, the syntax would look like this: amx_ban time userid reason.
In the plugin is as follows:
Code:
server_cmd(  "amx_ban #%i %i ^"%L^"", iUserid, get_pcvar_num( g_iCvars [ CVAR_BAN ] ), iUserid, "HP_NOTALLOWED" )
Would not it be so?
Code:
server_cmd(  "amx_ban %i #%i ^"%L^"", get_pcvar_num( g_iCvars [ CVAR_BAN ] ), iUserid, "HP_NOTALLOWED" )
Thank you.
__________________

Last edited by gui1porpis; 12-02-2014 at 13:16. Reason: Note
gui1porpis is offline
Send a message via MSN to gui1porpis Send a message via Skype™ to gui1porpis
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-02-2014 , 13:48   Re: Hostage Protection[ V 1.7 ]
Reply With Quote #44

Ok, will try to add it.
__________________
HamletEagle is offline
faKe91
Member
Join Date: Jan 2012
Location: Moldova, Chisinau
Old 02-13-2015 , 12:27   Re: Hostage Protection[ V 1.7 ]
Reply With Quote #45

Hello. Mby there are another way to set plugin to pause, when the server is not running a map cs_, such as Bomb Objective Management plugin? Plugin makes a lot of error files and I must delete it manually. Thank You.

Last edited by faKe91; 02-13-2015 at 12:30.
faKe91 is offline
Jockey
Member
Join Date: Nov 2008
Location: Germany
Old 02-16-2015 , 03:23   Re: Hostage Protection[ V 1.7 ]
Reply With Quote #46

Code:
You could make a new folder in amxmodx/configs called maps.

In this folder you create a new file called plugins-cs.ini with the content hostage_protection.amxx enabled

And dont type it in plugins.ini

Now its only loaded on cs_ maps.
Could there be also a check for how many hostages should get killed ?

The reason is easy.

You throw a grenade or just shoot at a CT and you hit a hostage one time you get banned ( yes i want them get banned ) .

So how could i make it that it only bans the player if he shoot/kill whatever 3 hostages and not just 1 ?

Last edited by Jockey; 02-16-2015 at 08:22.
Jockey is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 02-16-2015 , 12:15   Re: Hostage Protection[ V 1.7 ]
Reply With Quote #47

Ok guys, I'll think about that and when I have some free time I'll update the ml file and also the plugin :d
__________________
HamletEagle is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 02-16-2015 , 12:45   Re: Hostage Protection[ V 1.7 ]
Reply With Quote #48

I'd strongly recommend not writing information out to the log or error files unless there's an actual error. It'd be a lot better, IMO, to just print an admin message in game, and that's if you feel compelled to notify anyone at all.

Why?

It just gets messy with information that rarely changes and isn't useful to admins other than when they initially install and want to make sure it's working properly.

Perhaps add a "debug" CVAR that, when enabled, will write the information out to the appropriate files.
__________________
Brad is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 02-20-2015 , 12:44   Re: Hostage Protection[ V 1.7 ]
Reply With Quote #49

All of your suggestions are appreciated and were fallowed, except the part with the number of hostages killed. This will come in a future update, because it needs to redesign this plugin a bit and right now I don't have the needed time.

Changelog:
Code:
+Improved code readability
+Now using good variable names
+Added suport for amxbans(UNTESTED)
+Using a new method to pause the plugin
+Added new languages to ml file.
Waiting for more translations.

Edit: Updated HasOnlyKnife stock, thanks to claudiuhks for pointing out this mistake. It was working as it should but it was strange :O
__________________

Last edited by HamletEagle; 02-21-2015 at 03:26.
HamletEagle is offline
safetymoose
Senior Member
Join Date: Feb 2015
Old 02-24-2015 , 07:06   Re: Hostage Protection[ V 1.8 ]
Reply With Quote #50

This is a great plugin for an Assault 24/7 server. Great job
safetymoose 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 01:11.


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