View Single Post
nomy
Senior Member
Join Date: Dec 2009
Location: United Kingdom
Old 11-09-2015 , 04:21   Re: Very simple autojump for CS GO ?
Reply With Quote #5

If you want something really basic then this would be it:

PHP Code:
#include <sourcemod>

#pragma semicolon 1

public Action:OnPlayerRunCmd(client, &buttons, &impulseFloat:vel[3], Float:angles[3], &weapon)
{
    if (
IsPlayerAlive(client))
    {
        if (
buttons IN_JUMP)
        {
            if (!(
GetEntityFlags(client) & FL_ONGROUND))
            {
                
buttons &= ~IN_JUMP;
            }
        }
    }
    return 
Plugin_Continue;

nomy is offline