Hunter Jump
#2

This maybe inaccurate but this code help you, if you press SHIFT it will increase the player Position X & Z by 3(Edit if it's too high/low)

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_SECONDARY_ATTACK)
    {
        new Float:Coordinates[4];
        GetPlayerPos(playerid, Coordinates[0], Coordinates[1], Coordinates[2]), GetPlayerFacingAngle(playerid, Coordinates[3]);

        SetPlayerPos(playerid, Coordinates[0]+3, Coordinates[1], Coordinates[2]+3); //increasing the Coordinate 'Z' by 3 | increase the Coordinate 'X' by 3
        SetPlayerFacingAngle(playerid, Coordinates[3]);
    }
    return true;
}
Reply


Messages In This Thread
Hunter Jump - by samp_boy - 20.11.2013, 18:12
Re: Hunter Jump - by Patrick - 20.11.2013, 18:25
Re: Hunter Jump - by whando - 20.11.2013, 18:27
Re: Hunter Jump - by RayDcosta - 20.11.2013, 22:39
Re: Hunter Jump - by samp_boy - 22.11.2013, 08:33
Re: Hunter Jump - by samp_boy - 22.11.2013, 08:45

Forum Jump:


Users browsing this thread: 2 Guest(s)