AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Multi Jump v2.0 (https://forums.alliedmods.net/showthread.php?t=312395)

eat1k 12-01-2018 08:31

Multi Jump v2.0
 
2 Attachment(s)
Author: w0w (me).

Current version: 2.0

Changelog:
Spoiler


Requirements:
  • AMX Mod X 1.8.3 or higher.
  • ReAPI module.

Multilingual support:
  • Russian (RU)
  • English (EN)
  • Spanish (ES)
  • Turkish (TR): Snake.

Plugin has many features:
  • If you want a player with a certain flag (mj_admin_access) to always have additional jumps (mj_additional_jumps), you cannot leave empty mj_additional_jumps (if it's empty that means that everyone has additional jumps). You need to have multi_jump_admin enabled to use that CVar.
  • If you want to make automatically after the jump another one, you need to enable mj_auto_double_jump. If you use this setting and mj_additional_jumps is not empty then they are combined, that is, after your jump you will jump again automatically and be able to jump a specified number of times in mj_additional_jumps.
  • You can give jumps to a player/team/everyone if the multi_jump_admin plugin is enabled, as well as indicate the time you want to give them out, that is, for example, you give 10 jumps for 10 seconds, if the player does not spend these 10 jumps in 10 seconds they will be removed. Moreover, you should pay attention that you don't need to stack time, that is, if you give 10 jumps for 10 seconds and immediately 10 jumps for 15 seconds, then after 10 seconds the jumps will be removed.

    Examples of using the command:
    Spoiler


    If that CVar is enabled:
    • mj_admin_access: player with access flag/flags will be able to use free multi jumps (mj_additional_jumps).
    • mj_admin_menu_access: player with access flag/flags will be able to use that command.
    • mj_admin_cmd_messages: if you want to show messages in the chat after giving additional jumps to a player/team/everyone (0 - disabled; 1 - enabled).
    • mj_admin_cmd_logs: if you want to log when admins give additional jumps to a player/team/everyone (0 - disabled; 1 - enabled).
      • That's the format of a log: <player name of the player who gave> <Steam ID of the player who gave> <IP of the player who gave> -----> +number of given jumps -----> <player name of the player who received> <STeam ID of the player who received> <IP of the player who received>
  • Other option is that multi jumps can be bought. mj_purchase_cmd is reponsible for that. If it's enabled, players will be able to buy n multi jumps (depending on the CVar mj_purchase_cmd_additional_jumps).

    If the CVar is enabled:
    • mj_buy_price: price of n multi jumps.
    • mj_buy_price_steam: price of n multi jumps for steam players. Only if you have Reunion.

    DON'T CONFUSE mj_additional_jumps and mj_buy_additional_jumps.
  • You can also remove users' jumps on spawn (mj_reset_jumps_spawn).
  • If you want to have a trail after doing a multi jump you need to enable mj_trail.

    If the CVar is enabled:
    • mj_trail_effect: color type of the trail.
      • 0 - random trail color
      • 1 - color of team of the player
    • mj_trail_life: Life time of the trail
    • mj_trail_size: Size of the trail
    • mj_trail_brightness: Brightness of the trail

The config file is created automatically in "amxmodx/configs/plugins" where you can set settings which you want.

Configuration file (multi_jump):
Spoiler

Configuration file (multi_jump_admin):
Spoiler

Configuration file (multi_jump_buy):
Spoiler


The plugin has some natives:
  • mj_get_user_jumps(id): returns the number of jumps that a player has.
  • mj_give_user_jumps(id, amount): gives to a player a specified number of jumps. Returns the number of given jumps on success, false otherwise.
  • mj_set_user_jumps(id, amount): sets to a player a specified number of jumps. Returns the number of set jumps on success, false otherwise.
  • mj_remove_user_jumps(id, amount): removes a specified number of jumps from a player. Returns the number of removed jumps on success.

Moreover, it has a forward: mjfwd_BuyMultiJumps(id) which it's called when a player buys multi jumps.
Use #include <multi_jump> to use natives and the forward from that plugin.

Official topic of the resource in:

SHIELD755 12-01-2018 09:52

Re: Multi Jump v1.0
 
why do you remove amxmodx version 1.8.3 support ? i am using this version :(

eat1k 12-01-2018 09:53

Re: Multi Jump v1.0
 
Quote:

Originally Posted by SHIELD755 (Post 2626253)
why do you remove amxmodx version 1.8.3 support ? i am using this version :(

I see no issues with using AMX Mod X 1.9.0 or 1.10.0. I recommend you to change your version but if you don't want, you can add:

PHP Code:

#if !defined MAX_AUTHID_LENGTH
    #define MAX_AUTHID_LENGTH 32
#endif 


E1_531G 12-01-2018 10:13

Re: Multi Jump v1.0
 
Quote:

Originally Posted by eat1k (Post 2626255)
I see no issues with using AMX Mod X 1.9.0 or 1.10.0. I recommend you to change your version but if you don't want, you can add:

PHP Code:

#if !defined MAX_AUTHID_LENGTH
    #define MAX_AUTHID_LENGTH 32
#endif 


You must not speak about 1.10.
It isn't even available on official AMXX website, it's like 'alpha' version.
https://www.amxmodx.org/downloads-new.php
I know about 'secret' link to master branch, but it is hidden for a good reason.

Latest stable is 1.8.2, we didn't have stable 1.8.3, 1.9 is still in 'dev' and people talk about 1.10, shame...

eat1k 12-01-2018 10:19

Re: Multi Jump v1.0
 
Quote:

Originally Posted by E1_531G (Post 2626256)
You must not speak about 1.10.
It isn't even available on official AMXX website, it's like 'alpha' version.
https://www.amxmodx.org/downloads-new.php
I know about 'secret' link to master branch, but it is hidden for a good reason.

Latest stable is 1.8.2, we didn't have stable 1.8.3, 1.9 is still in 'dev' and people talk about 1.10, shame...

If you don't want to speak about it, so don't do it. I no see problem with that. Why should I not to speak about that? What is the problem? Should we stay on bad AMXX 1.8.2? AMXX 1.9.0 is much better than AMXX 1.8.2 and it's almost the same as AMX Mod X 1.8.3. AMXX 1.10.0 is useful for developers. There are changes that will not be added to AMX Mod X 1.9.0.

klippy 12-01-2018 10:39

Re: Multi Jump v1.0
 
1.9.0 IS 1.8.3, it was just renamed because it more accurately represents the semver change. There's only been a few bugfixes in that branch.

eat1k 12-01-2018 10:42

Re: Multi Jump v1.0
 
Quote:

Originally Posted by KliPPy (Post 2626259)
1.9.0 IS 1.8.3, it was just renamed because it more accurately represents the semver change. There's only been a few bugfixes in that branch.

Not only bugfixes but yes, it's almost the same. By default, this plugin is not supporting AMXX 1.8.3.

fysiks 12-01-2018 14:34

Re: Multi Jump v1.0
 
Quote:

Originally Posted by eat1k (Post 2626257)
Should we stay on bad AMXX 1.8.2?

There are no major issues with 1.8.2 so I would not call it "bad". People have been using it for like 10 years; if it were "bad" it would have been replaced much sooner.

eat1k 12-01-2018 14:38

Re: Multi Jump v1.0
 
Quote:

Originally Posted by fysiks (Post 2626284)
There are no major issues with 1.8.2 so I would not call it "bad". People have been using it for like 10 years; if it were "bad" it would have been replaced much sooner.

Maybe. But my plugins will not support that version, as well as AMXX 1.8.3 in some cases. I think we should use now AMXX 1.9.0 or higher.

Snake. 12-01-2018 15:52

Re: Multi Jump v1.0
 
Hello.I guess you have shared wrong archive, it is master-key. :D


All times are GMT -4. The time now is 22:54.

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