BlackEyes Posted October 10, 2012 Share Posted October 10, 2012 I have been trying to learn it but I am having trouble of course. I'm trying to make a !pad thing, for learning, like you see in the bunnyhop server. But I don't know how to detect a -action. Like for example you have +jump, +back, +forward. I can detect those, and print onto the screen whatever I want. But when something like -jump, -back, or -forward are used, I don't know how to detect when those occur. public Action:OnPlayerRunCmd(client, &buttons, &impulse, Float:vel[3], Float:angles[3], &weapon) { if (IsClientConnected(client) && IsClientInGame(client) && IsPlayerAlive(client)) { if (buttons & IN_FORWARD) { PrintCenterText(client, "W"); } if (buttons & ~IN_FORWARD) // <------------- WHAT DO I DO HERE? { PrintCenterText(client, ""); } } } Quote Link to comment Share on other sites More sharing options...
enigma# Posted October 10, 2012 Share Posted October 10, 2012 This might help >.< http://forums.alliedmods.net/showthread.php?t=151142 Quote Link to comment Share on other sites More sharing options...
BlackEyes Posted October 10, 2012 Author Share Posted October 10, 2012 I managed to figure it out Even managed to create a working pad that detects how many times you scroll each jump just like the HG server does. Now I just have to make it so you can turn it on and off using "sm_pad". Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.