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

Captains Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 06-17-2017 , 21:44   Re: Captains Plugin
Reply With Quote #11

I appreciate you.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 06-19-2017 , 15:37   Re: Captains Plugin
Reply With Quote #12

Released the version 1.5:

ºCode edited:
. Added duel_choose_side 1/0 - If you want not to allow the captains to choose which team he want to start on, turn it 0,
if you want, turn it 1.
. Added a universal .ini file to read the map's coordinates instead of one per map.
. Added loadCvars() stock for load cvars at dir/addons/amxmodx/configs/CaptainsPlugin/cp_cvars.cfg

Probably the final update until someone tell me about errors/for add something in the plugin.

PS About Coordinates:
If there's coordinates on the map that you want to add new coordinates already, you must delete the old one to add a new.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
Yomanyo
New Member
Join Date: Jun 2017
Old 06-21-2017 , 08:34   Re: Captains Plugin
Reply With Quote #13

Plugin not working in AMXMODX 1.8.2
When I type /start all the players are transferred to Spectator but I don't get a menu for selecting any captain...
Please help out ...
Yomanyo is offline
Old 06-21-2017, 15:14
EFFx
This message has been deleted by EFFx. Reason: .
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 06-21-2017 , 15:52   Re: Captains Plugin
Reply With Quote #14

get_players() only supports SPECTATOR team with AMXX 1.8.3. You must use it.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 06-21-2017 , 17:20   Re: Captains Plugin
Reply With Quote #15

Quote:
Originally Posted by EFFx View Post
get_players() only supports SPECTATOR team with AMXX 1.8.3. You must use it.
You need to make the plugin works with amxx 1.8.2 the stable version....
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 06-21-2017 , 17:29   Re: Captains Plugin
Reply With Quote #16

Quote:
Originally Posted by Natsheh View Post
You need to make the plugin works with amxx 1.8.2 the stable version....
I don't know if that's a MUST, an modder/approver should clarify if we can make/post plugins wich supports also only .1.8.3++ .
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 06-21-2017 , 17:42   Re: Captains Plugin
Reply With Quote #17

I know I should make it work wit 1.8.2. But I suggest them to use the 1.8.3, i'll explain why:

I can't do this with <1.8.3
PHP Code:
new iPlayers[32], iNum
get_players
(iPlayersiNum)
for(new 
iiPlayer;iNum;i++)
{
   
iPlayer iPlayers[i]

   if(
cs_get_user_team(iPlayer) != CS_TEAM_SPECTATOR)
      continue

   if(!
iNum)
      continue

'Cuz the plugin checks sometimes whether there's spectators in the server for end the choose or choose another random spec player to join on X team if X captain has left, understand?

So, with 1.8.3>, I can do this:

PHP Code:
new iPlayers[MAX_PLAYERS], iNum
get_players
(iPlayersiNum"eh""SPECTATOR")

if(!
iNum)
   return

for(new 
iiPlayer;iNum;i++)
{
   
iPlayer iPlayers[i]

   
// bla bla bla

__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 06-21-2017 at 17:43.
EFFx is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 06-21-2017 , 18:08   Re: Captains Plugin
Reply With Quote #18

Quote:
Originally Posted by Natsheh View Post
You need to make the plugin works with amxx 1.8.2 the stable version....
This is absolutely not a requirement.
__________________
asherkin is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 06-21-2017 , 19:11   Re: Captains Plugin
Reply With Quote #19

Quote:
Originally Posted by asherkin View Post
This is absolutely not a requirement.
It should be since 183 isnt yet a stable version and it might has a potential bugs..



@EFFx

Its your plugin do what ever you want with it im not forcing you to make it computable with vers 182 its you choice...

Its not that hard to make it computable with vers 182

Just
PHP Code:
#if AMXX_VERSION_NUM < 183
#Else
#EndIf 
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 06-21-2017 at 19:11.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 06-21-2017 , 19:13   Re: Captains Plugin
Reply With Quote #20

I tried my furien mod with 1.8.3 and it just works fine. The mod is so big and as I saw, it works. About #if statement, can you read my previous post? It explains why I want not use the 1.8.2<
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 06-21-2017 at 19:13.
EFFx 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 10:14.


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