12/10/2022 22:59
(12/10/2022 20:36)Device-Black Escreveu:Deu certo muito obrigado ajudou demais!!!Código PHP:stock SetPlayerSpeed(playerid, Float:speed)
{
static Float:a, Float:x, Float:y;
a = x = y = 0.0;
GetPlayerFacingAngle(playerid, a);
x += (speed * floatsin(-a, degrees));
y += (speed * floatcos(-a, degrees));
return SetPlayerVelocity(playerid, x, y, 0.0);
}
Testa esse ai