Thread: Multi Jump v2.0
View Single Post
Plugin Info:     Modification:          Category:         
eat1k
Senior Member
Join Date: Apr 2018
Old 12-01-2018 , 08:31   Multi Jump v2.0
Reply With Quote #1

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:
Attached Files
File Type: sma Get Plugin or Get Source (multi_jump.sma - 1899 views - 11.0 KB)
File Type: zip multi_jump.zip (10.9 KB, 899 views)

Last edited by eat1k; 03-06-2019 at 09:41. Reason: Updated to 2.0
eat1k is offline