Quote:
Originally Posted by triggerman
This plugin is horrible.
It rebinds the mousewheel to say a chat command and overwrites whatever they had bound to there mousewheel, most likely weapon switching.
Furthermore these bond chat commands stay bond after the player has left the server and cause players to say them when they would try to use the mousewheel in a server that does not feature this plugin.
I would be seriously pissed if i joined a server and had my controls changed without consent or warning.
|
Thank for you suggestion, It just for test, so do not be serious, do you have an good idea for solve this?
It still works when do nothing to mouse wheelup and mouse wheeldown.
Just change
Code:
public PlayerConnectFull(Handle:event, const String:name[], bool:dontBroadcast)
{
new client = GetClientOfUserId(GetEventInt(event, "userid"));
ClientCommand(client, "bind mwheelup \"say /zoominc\"");
ClientCommand(client, "bind mwheeldown \"say /zoomdec\"");
}
public OnClientDisconnect(client)
{
ClientCommand(client, "bind mwheelup invprev");
ClientCommand(client, "bind mwheeldown invnext");
}
to
Code:
pu blic PlayerConnectFull(Handle:event, const String:name[], bool:dontBroadcast)
{
new client = GetClientOfUserId(GetEventInt(event, "userid"));
//ClientCommand(client, "bind mwheelup \"say /zoominc\"");
// ClientCommand(client, "bind mwheeldown \"say /zoomdec\"");
}
public OnClientDisconnect(client)
{
//ClientCommand(client, "bind mwheelup invprev");
//ClientCommand(client, "bind mwheeldown invnext");
}
every thing will be ok.