server binds key for player
i some help i dont have any references (could post some for me) on the api on source mod and just want to make a plugin where when the player enters the game it will bind a key for them so they don't have to.
all i need to know is the on_event() wich event is the entered game event is it just on_enteredgame() or what. when a player enters the game it will send a console command as if it were typed in for them. e.g bind v "build 2" but if u could just post some references so learning is easier and or an example of what i want EDIT 11/8/2010 : I'm not new to programing or c++ (not an expert ether) but I am new to the sourcemod API so could u give me some functions i can mess around with. i want to know if theres a way to detect when the player enters the game and then spawns for the first time. Also how do you know what player to send a client executing command to when someone types !bind into chat. |
Re: server binds key for player
|
Re: server binds key for player
so i know that command but i need it to send it to them when they connect so they dont have to do any thing and do i need to get the players id for ClientCommand
|
Re: server binds key for player
Please let them have a choice, I'm sick of servers re-binding my keys without permission.
|
Re: server binds key for player
Apparently FaTony doesn't know what he is talking about then, I just asked that same question a couple days ago.
http://forums.alliedmods.net/showthread.php?t=141813 Thanks for the correct answer. It is important to my plugin |
Re: server binds key for player
Quote:
Re-bind keys without permission (asking) is indeed a 'bitch-move'. Please don't do it. |
Re: server binds key for player
Quote:
|
Re: server binds key for player
no you guys don't seem to understand every one who joins my server don't know shit about the console and u to bind all the building commands to a key and the +throw command to a key too but i just use v,b,n,m as sentry dispenser and teleporters and f as the throw and grab for the sentry grabber. so i think none of these keys are being used. I know if I make a custom admin menu I can set it to send the bind key to the player and then its done but umm i just need a way to either making it so when they join the game it sends the commands to there console. or they can just type !bind in to the console and it will bind all the keys they need to use. any one got any examples.
and thanks for the support so fare. |
Re: server binds key for player
Quote:
|
Re: server binds key for player
Which is why you create !bind and you give the clients all the information they need to bind keys, as well as any relevant information you deem necessary. It's abusive behavior and luckily it's fixed in OB.
|
All times are GMT -4. The time now is 07:26. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.