Improve this slow setplayerspeed
#2

Well i change something.

PHP код:
public OnPlayerUpdate(playerid)
{
    if(
GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
    {
        new 
Float:VPOS[3];
        
GetPlayerVelocity(playeridVPOS[0], VPOS[1], VPOS[2]);
             
SetPlayerVelocity(playeridVPOS[0]-0.5VPOS[1]-0.5VPOS[2]-0.5);
    }
    return 
1;

"-" means subtract. Also i almost change the whole code
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: 2 Guest(s)