Raised This Month: $12 Target: $400
 3% 

Ok, a TS Problem.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sif
Member
Join Date: Jan 2005
Location: USA.
Old 12-25-2005 , 23:33   Ok, a TS Problem.
Reply With Quote #1

How would one go about making a player on TS just stop jumping?
__________________

Quote:
Originally Posted by pinkfarie
and its usaly better if someone else looks over to find the problem since its not my code,anyone?
Sif is offline
Unidentified
Senior Member
Join Date: Aug 2005
Location: Compton, L.A. Thug
Old 12-26-2005 , 00:32  
Reply With Quote #2

Quote:
-jump
Unidentified is offline
.Prometheus.
Member
Join Date: Sep 2004
Old 12-26-2005 , 00:57  
Reply With Quote #3

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 :/
.Prometheus. is offline
Send a message via AIM to .Prometheus. Send a message via MSN to .Prometheus.
colby
Senior Member
Join Date: Jun 2005
Location: NC
Old 12-26-2005 , 15:39  
Reply With Quote #4

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.
colby is offline
Send a message via AIM to colby
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 12-26-2005 , 15:52  
Reply With Quote #5

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.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
.Prometheus.
Member
Join Date: Sep 2004
Old 12-26-2005 , 19:17  
Reply With Quote #6

D:

I'm currently failing at working out how to do/use what you just said :/
.Prometheus. is offline
Send a message via AIM to .Prometheus. Send a message via MSN to .Prometheus.
[+]
Junior Member
Join Date: Dec 2005
Location: Alaska
Old 12-27-2005 , 04:53  
Reply With Quote #7

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.
[+] is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 12-27-2005 , 11:46  
Reply With Quote #8

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
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
.Prometheus.
Member
Join Date: Sep 2004
Old 12-27-2005 , 13:41  
Reply With Quote #9

Nope. D:
.Prometheus. is offline
Send a message via AIM to .Prometheus. Send a message via MSN to .Prometheus.
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:35.


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