09.03.2016, 09:07
Well i change something.
"-" means subtract. Also i almost change the whole code
PHP код:
public OnPlayerUpdate(playerid)
{
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
new Float:VPOS[3];
GetPlayerVelocity(playerid, VPOS[0], VPOS[1], VPOS[2]);
SetPlayerVelocity(playerid, VPOS[0]-0.5, VPOS[1]-0.5, VPOS[2]-0.5);
}
return 1;
}