Features
Remove flash.
Give one flash to player.
Give a flash every time the user throw one.
Block/ghost (Transparent as ghost).
Checkpont menu (Save/tele menu)
Respawn
Cvar to set Trikz settings
Trikz menu
Teleport to player
Requirements- SDKHooks
- SteamTools
- Updater (if you need the plugin to update automaticly)
Chat Commands- !trikz (Brings up the trikz menu).
- !tpmenu (Brings up the save/teleport menu).
- !auto (Brings up the autoflash menu).
- !flash (Give one flashbang).
- !autoflash (autogive flashbang when othe user throw one).
- !autoflashswitch (Autogive flashbang and switches to it after 0.15 sec).
- !block (Mortal/ghost player)
- !autojump (Autojump when jump button is pressed)
- !save1 (Save first teleport)
- !save2 (save secound teleport)
- !tele1 (Teleport to first teleport)
- !tele2 (Teleport to second teleport)
- !teleport_noti (Toggles whenever a player wants to be notified about player wanting to teleport to him/her)
Public Player Console Commands- sm_trikz (Brings up the trikz menu).
- sm_tpmenu (Brings up the save/teleport menu).
- sm_automenu (Brings up the autoflash menu).
- sm_flash (Give one flashbang).
- sm_autoflash (autogive flashbang when othe user throw one).
- sm_autoflashswitch (Autogive flashbang and switches to it after 0.15 sec).
- sm_block (Mortal/ghost player)
- sm_autojump (Autojump when jump button is pressed)
- sm_save1 (Save first teleport)
- sm_save2 (save secound teleport)
- sm_tele1 (Teleport to first teleport)
- sm_tele2 (Teleport to second teleport)
- sm_teleport_noti (Toggles whenever a player wants to be notified about player wanting to teleport to him/her)
Cvars
Will be auto-generated on first run at cfg/sourcemod/trikz.cfg
PHP Code:
// This file was auto-generated by SourceMod (v1.4.1)
// ConVars for plugin "trikz.smx"
// Enable or disable new server tag : "Trikz" : 0 - disable, 1 - enable
// -
// Default: "1"
sm_trikz_add_servertag "1"
// What should sv_airaccelerate be (requires sm_trikz_settings to be 1)
// -
// Default: "150"
sm_trikz_airaccelerate "150"
// Enable or disable auto jump (!trikz_autojump): 0 - disable, 1 - enable
// -
// Default: "1"
sm_trikz_autojump "1"
// Enable or disable autoupdate: 0 - disable, 1 - enable
// -
// Default: "1"
sm_trikz_autoupdate "1"
// Enable or disable effects on flashbang explosions: 0 - disable, 1 - enable sparks, 2 - enable sound, 3 - enable sparks & sound
// -
// Default: "0"
sm_trikz_effects "0"
// Enable or disable autoflash command: 0 - disable, 1 - enable
// -
// Default: "1"
sm_trikz_enableautoflash "1"
// Enable or disable autoflashswitch command (requires sm_trikz_enableautoflash to be 1): 0 - disable, 1 - enable
// -
// Default: "1"
sm_trikz_enableautoflashswitch "1"
// Enable or disable block command (!trikz_block): 0 - disable, 1 - enable
// -
// Default: "1"
sm_trikz_enableblock "1"
// Enable or disable invisibility when ghost (requires sm_trikz_enableblock to be 1): 0 - disable, 1 - enable
// -
// Default: "1"
sm_trikz_enableblockinvis "1"
// Enable or disable respawn command: 0 - disable, 1 - enable
// -
// Default: "1"
sm_trikz_enablerespawn "1"
// Enable or disable teleport menu/commands: 0 - disable, 1 - enable
// -
// Default: "1"
sm_trikz_enableteleport "1"
// Enable or disable that a player can teleport to another player (if the other player allows): 0 - disable, 1 - enable
// -
// Default: "1"
sm_trikz_enableteleporttp "1"
// Enable or disable grenade radio (Fire in the hole!): 1 - disable, 0 - enable
// -
// Default: "1"
sm_trikz_ignoreradio "1"
// Enable or disable no fall damage: 0 - disable, 1 - enable
// -
// Default: "1"
sm_trikz_nofall "1"
// Enable or disable override of the game description (standard Counter-Strike: Source, override to SM_Trikz/Trikz): 0 - disable, 1 - enable
// -
// Default: "1"
sm_trikz_override_gamedesc "1"
// How many times a player can respawn pr. minute. default 2 times pr. minute (requires sm_trikz_enablerespawn to be 1): 0 - disabled
// -
// Default: "2"
sm_trikz_respawnmin "2"
// Enable or disable trikz settings (Airaccelerate, flashboost, friendlyfire and bhopenable): 0 - disable, 1 - enable
// -
// Default: "1"
sm_trikz_settings "1"
// How much time after 2 players has teleport to each other they should not collide (block each other)
// -
// Default: "5"
sm_trikz_teleporttime "5"
// SM_Trikz plugin version (unchangeable)
// -
// Default: "0.6.6"
sm_trikz_version "0.6.6"
Installation
First download and install all the requirements, then download trikz.zip and extract it to cstrike\addons\sourcemod. Now restart your server, and trikz should work.
Changelog
- 0.2
- Fixed bug so you can't use all the commands when you are dead ex. !save1.
- Fixed bug so you could respawn when you was on spectator.
- A lot of other things i don't remember.
- 0.3
- Fixed so you can't spam the server by respawning yourself and drop gun and cause Hugh lag.
- Fixed so you can't spam the server whit flashbangs.
- Fixed that if you set a cvar above 1 it would not been seen in the menu (If the cvar is above 1 it will take it as enabled.)
- Added command to strip and give knife at spawn.
- 0.4
- Rewrote the plugin!
- Add autoswitch to autoflash so when a players throws a flashbang, he automatic switches to the flash.
- Added as ghost are transparent.
- Added french translation, thanks to Malak044.
- Fixed a **** load of bugs.
- Added new cvars.
- Added no fall damage to the plugin (Cvar to disabled and enable).
- Can't remember all the other things.
- 0.5
- Added autojump.
- Optimized some things.
- Changed autoflash switch time from 0.8 to 0.15
- Removed french translation until someone wants to update it.
- 0.6.0
- Changed autojump to be disabled by default
- Changed if a player enables autoswitch, it will automatic change to flashbang.
- Changed how autoflash and autoswitch works.
- Changed how the plugin counts the players current flashbangs.
- Fixed that if a player disconnect before the welcome message there would be a ERROR
- Fixed when saving in air (save2) the translation would be wrong (ERROR).
- Fixed autoflash and autoswitch being reset upon spawn
- Fixed typo with fall damage cvar.
- Fixed translation for autojump.
- Added teleport to player (open trikz menu, teleport to player, choose player, the player choosen will be asked and can either Accept, Deny, and Deny and don't ask again).
- Added support for autoupdate (Updater Plugin).
- Added limit on respawn (could crash server).
- Added new translations for autoswitch
- Removed credits from menu (dosen't matter to the players).
- 0.6.1
- Fixed minor bugs.
- Removed some unused translations.
- 0.6.2
- Fixed not being able to open checkpoints menu through trikz menu.
- 0.6.3
- Added german translations thanks to stonedegg.
- 0.6.4
- A couple of fixes thanks to KyleS and shavit!
- 0.6.5
- Fixed the way the game desc was overriden (SDK Hooks => SteamTools)
- Fixed being able to teleport to SoureTV
- 0.6.6
- Fixed that if SteamTools doesn't work, then none will work (SteamTools is optional for GameDesc)
If you have any bugs or request, leave a reply!
Credits Goto
3sigma - For making the basic code.
Exvel - For the flash remove code.
Dataviruset - For using some of his code.
Malak044 - For adding french translations, and helping me with making some of the code, and testing ;)
stonedegg - Adding german translation
Chrisber - For autojump code.