AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Ok, a TS Problem. (https://forums.alliedmods.net/showthread.php?t=22403)

Sif 12-25-2005 23:33

Ok, a TS Problem.
 
How would one go about making a player on TS just stop jumping?

Unidentified 12-26-2005 00:32

Quote:

-jump

.Prometheus. 12-26-2005 00:57

Uhh, no.

Sif posted this for me, that simply won't work in my situation.

But, if I'm wrong, you need to kind of give me a liiittle more info :/

colby 12-26-2005 15:39

Code:
public client_PreThink(id) {    if(get_user_button(id) & IN_JUMP) {      client_print(id,print_chat,"lol no jump for you^n")      return PLUGIN_HANDLED    }  }

Try that.

Twilight Suzuka 12-26-2005 15:52

No.
You must use FM to catch the pre pre think, and post pre think, and remove the IN_JUMP flag from both old and new buttons.

.Prometheus. 12-26-2005 19:17

D:

I'm currently failing at working out how to do/use what you just said :/

[+] 12-27-2005 04:53

Basically what Mel is trying to say is you have to catch before the user jumps to disable it. From my experience, this would be a bit complacated for me to show you an example..sorry. :(

Twilight Suzuka 12-27-2005 11:46

It is quite simple, here is an example plugin I wrote in 20.43 repeating seconds (timing approximate by +- .3 seconds).

Code:
#include <amxmodx> #include <fakemeta> #include <engine> public plugin_init() {     register_plugin("Test -jump", "1.17", "Twilight Suzuka")     register_forward(DLLFunc_PlayerPreThink, "pre_thinkage", 0)     register_forward(DLLFunc_PlayerPreThink, "pre_thinkage", 1) } public pre_thinkage(id) {     new buttons = get_user_buttons(id);     if( buttons & IN_JUMP) buttons |= IN_JUMP; }

Dunno if that WILL work (I forget my operators), but its the basic format

.Prometheus. 12-27-2005 13:41

Nope. D:


All times are GMT -4. The time now is 15:47.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.