AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Event (https://forums.alliedmods.net/showthread.php?t=20056)

Stormsys 10-31-2005 13:55

Event
 
hello,

is there a onuserjump event

if so how would it be used for amx?

thanks

Zenith77 10-31-2005 14:41

onuserjump event ?


like when they jump ?

XxAvalanchexX 10-31-2005 15:40

Hmm... try this.

Code:
public client_PreThink(id) {    if(!is_user_alive(id))       return;    new button = get_user_button(id);    new oldbutton = get_user_oldbutton(id);    new flags = get_entity_flags(id);    if( (button & IN_JUMP) && !(oldbutton & IN_JUMP) && (flags & FL_ONGROUND) && !(flags & FL_INWATER) ) {       client_jump(id);    } }

It's a little sketchy.


All times are GMT -4. The time now is 23:42.

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