View Single Post
Author Message
AK978
Senior Member
Join Date: Jun 2018
Old 02-27-2019 , 13:46   [Any]Binding button for server
Reply With Quote #1

server_bind_key.smx

Description:
Directory mode allows players to select temporary binding commands.
bind - SCORE,DUCK,ZOOM,WALK,SPEED
Plugin testing is available


player command:
sm_bind_menu


The server administrator provides five open-bound instructions
conVar:
sm_command_1 "" //example:sm_buy
sm_command_2 ""
sm_command_3 ""
sm_command_4 ""
sm_command_5 ""



version:
1.0 New Plugin
1.1 Add Remove bind
1.2 Code Optimization(optimization: Dragokas)
1.3 Bug fixes and code optimization(optimization: Dragokas)

==================
server_bind_key_v2.smx

v2 version - bind *26 key
"ATTACK"
"JUMP"
"DUCK"
"FORWARD"
"BACK"
"USE"
"CANCEL"
"LEFT"
"RIGHT"
"MOVELEFT"
"MOVERIGHT"
"ATTACK2"
"RUN"
"RELOAD"
"ALT1"
"ALT2"
"SCORE"
"SPEED"
"WALK"
"ZOOM",
"WEAPON1"
"WEPAON2"
"BULLRUSH"
"GRENADE1"
"GRENADE2"
"ATTACK3"


Code:
//You need to change your server command to place your server open binding
(Should be able to put a lot)
line 61:
new const String:g_command[][] = 
{
	"sm_buy",
	"sm_pm",
	"sm_votes",
	"sm_dm",
	"sm_l"
};

player command:
sm_binds_menu


version:
1.0 New Plugin



My plugins

贊助網址 Donation URL
https://pay.ecpay.com.tw/CreditPayme...=3050613&Enn=e
Attached Files
File Type: sp Get Plugin or Get Source (server_bind_key.sp - 529 views - 7.4 KB)
File Type: sp Get Plugin or Get Source (server_bind_key_v2.sp - 570 views - 16.5 KB)

Last edited by AK978; 03-01-2019 at 20:16.
AK978 is offline