SetPlayerSPeed
#1

is there an function like SetPlayerSpeed(playerid, Float:kmh) ?
Reply
#2

hm...i dont think so
Reply
#3

This is no function as SetPlayerSpeed but there is one as SetPlayerVelocity. This function makes the player move in the given direction at the given speed.

Examples by SA-MP Wiki:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (!strcmp("/jump", cmdtext))
    {
    SetPlayerVelocity(playerid,0.0,0.0,0.2); //Forces the player to jump
    return 1;
    }
    if (!strcmp("/sink", cmdtext))
    {
    SetPlayerVelocity(playerid,0.0,0.0,-0.5); //Forces the player to sink
    return 1;
    }
    return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)