Raised This Month: $ Target: $400
 0% 

Question about development...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 04-04-2017 , 18:54   Question about development...
Reply With Quote #1

Hello, I already did a game mode but I don't know the correct way to do. The correct is write all game mode in one plugin or each plugin with global game functions?
__________________








CrazY. is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-04-2017 , 21:16   Re: Question about development...
Reply With Quote #2

What are you talking about?
__________________
fysiks is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 04-04-2017 , 21:40   Re: Question about development...
Reply With Quote #3

He meant a mod with 1 plugin with 5k of lines or 5 plugins with API?
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 04-04-2017 , 22:19   Re: Question about development...
Reply With Quote #4

Yes..
__________________








CrazY. is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-04-2017 , 22:48   Re: Question about development...
Reply With Quote #5

You can do it however you like. It really depends on your end goal. If you are designing the plugin for yourself then you don't need to go through all the trouble of making a module system of plugins.
__________________
fysiks is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 04-05-2017 , 00:06   Re: Question about development...
Reply With Quote #6

Quote:
Originally Posted by fysiks View Post
You can do it however you like. It really depends on your end goal. If you are designing the plugin for yourself then you don't need to go through all the trouble of making a module system of plugins.
Understand now?
__________________

Last edited by HamletEagle; 04-05-2017 at 00:06.
HamletEagle is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 04-04-2017 , 23:40   Re: Question about development...
Reply With Quote #7

I think you dont understand my question.. sorry, my bad English.. Ok then, I want know if is correctly add all mode code in one plugin (zp 4.3 style) or separated (zp 5.0 style). Example: I have a plugin with a function to infect a player, I want give nightvision to this player when he is infected, the better way to do this is make a code of nightvision into the same plugin or make a external file that only will have the nightvision code.. Understand now?
__________________









Last edited by CrazY.; 04-04-2017 at 23:41.
CrazY. is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 04-05-2017 , 06:42   Re: Question about development...
Reply With Quote #8

It is all about what is more comfortable for you..

Creating your mod using multiple plugins

- Better workflow
- Readability
- Easier to debug
- Easier to fix

Creating your mod using one plugin

- More efficient for various reasons

In conclusion, it is more efficient resource wise to do it in one plugin, but it is more confusing, harder to debug and fix stuff
__________________

Last edited by Depresie; 04-05-2017 at 06:43.
Depresie is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 04-05-2017 , 07:15   Re: Question about development...
Reply With Quote #9

You need to see what a API does first. If you need to share functions with other players without a pain of open your 5k lines plugin, you shoud consider to use it.
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 04-05-2017 , 10:54   Re: Question about development...
Reply With Quote #10

Hmm.. ok, thanks!
__________________








CrazY. 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 18:03.


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