Improve this slow setplayerspeed
#4

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
So errmmm, what happens when we stand still? :S
Oh i see!
PHP код:
public OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
    if(
GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
    {
        if(
newkeys KEY_WALK) && (newkeys KEY_SPRINT))
        {
            new 
Float:VPOS[3];
            
GetPlayerVelocity(playeridVPOS[0], VPOS[1], VPOS[2]);
            
SetPlayerVelocity(playeridVPOS[0]*0.5VPOS[1]*0.5VPOS[2]*0.5);
        }
    }
    return 
1;

Reply


Messages In This Thread
Improve this slow setplayerspeed - by gmstrikker - 09.03.2016, 06:53
Re: Improve this slow setplayerspeed - by MicroKyrr - 09.03.2016, 09:07
Re: Improve this slow setplayerspeed - by Sew_Sumi - 09.03.2016, 09:43
Re: Improve this slow setplayerspeed - by MicroKyrr - 09.03.2016, 10:16
Re: Improve this slow setplayerspeed - by Vince - 09.03.2016, 10:35
Re: Improve this slow setplayerspeed - by NaS - 09.03.2016, 12:43
Re: Improve this slow setplayerspeed - by gmstrikker - 09.03.2016, 13:35
Re: Improve this slow setplayerspeed - by DRIFT_HUNTER - 09.03.2016, 14:07
Re: Improve this slow setplayerspeed - by Sew_Sumi - 09.03.2016, 14:14
Re: Improve this slow setplayerspeed - by pdonald - 15.03.2016, 19:28

Forum Jump:


Users browsing this thread: 1 Guest(s)