amx_distort v2.1

Post Reply
greenie
Full Member
Full Member
Posts: 1815
Joined: Sun Nov 21, 2021 4:55 pm
Jucator SA:MP ?: Nu
Nick:: greenie
Jucator CS ?: Nu

amx_distort v2.1

Post by greenie »

Description:
This plugin distorts the reality of a player by showing flashbacks of the past/making entities disappear!
It is similar to a stroboscope and can be used for punishments!
Warning: This can cause headaches!!!

Modules:
Fakemeta
Amxx Core

Commands:
amx_distort <name or #userid> <time> <a|b|c> - activates the distort, time is in seconds, flags (each does something)
amx_undistort <name or #userid or @all> - deactivates the distort (connected players only!)
amx_show_distorted - shows the distorted players (connected and disconnected)
All the commands need the ADMIN_BAN flag

Flags:
a - Glow flag - this makes the entities flicker fast (this is very annoying to a player)
b - Self flag - this will make the player see flashbacks of the past (this has the biggest potential of causing headaches!!!)
c - Other flag - this will make entities false move (it is similar to a but a little harder)

When the command "amx_distort" is executed just with the nick/#userid argument the flag that will be taken into account will be b and the duration will be one minute!

Cvars:
dist_extratime 30.0 // Extra time that will be added if a player reconnects, this is in seconds, the extra time add will not apply on map changes! Only if player reconnects on the same map!

Useful Links:
Servers having this punishment

Edit this if you want plugin parameter functionality change:
// Uncomment this to make the plugin use the IP of the players and not AUTH_ID
//#define USE_IP

// Make this smaller to make the distortions smaller
// Do not set this over 75 because it will be too hard on the player
#define CHANCE 50
// Smaller means smaller resource use ;)
#define MAX_PLAYERS 32

// Default time, seconds
#define DEFAULT_TIME 60.0 // 60.0 = one minute, I think that it is enough
#define MAX_TIME_POSSIBLE 600.0 // 10 minutes, I tell you it is enough to fuck your brains when we talk about flags b and c
#define MAP_CHANGE_NUM 2 // Times the map needs to be changed to erase the distorted player from disconnected players, 0 or negative means infinite!
Movie [Thanks vermillioN25]:
http://www.youtube.com/watch?v=zS77dioUgCI

Changelog:
- v2.1 - added map change reconnect support
- v2.0 - added reconnect support, flags, time based punishment, command that shows distorted players (connected and disconnected), logging, chat prints
- v1.1 - remove distort when client disconnects, added cvar for server find
- v1.0 - initial release
get plugin
get source
Post Reply

Return to “Admin Commands”