19.01.2010, 08:04
its not exactly meters but yes i think its 8 samp-units/s/s.
You could easily write a script to test this.(below, not tested) Will give you samp-units/s/s.
You should also have a terminal velocity otherwise you will end up with a really fast object.
You could easily write a script to test this.(below, not tested) Will give you samp-units/s/s.
You should also have a terminal velocity otherwise you will end up with a really fast object.
pawn Код:
new playerSpeed[MAX_PLAYERS];
public OnFilterScriptInit()
{
SetTimer("AccelerationTimer", 1000, 1);
}
public ()
{
new Float:Xnull, Float:Ynull, Float:Zspeed;
for(new playerid=0; playerid<MAX_PLAYERS; playerid++)
{
GetPlayerVelocity(playerid, Xnull, Ynull, Zspeed);
new msg[128];
format(msg, sizeOf(msg), "Acceleration: %f/s/s", Zspeed-playerSpeed[playerid]);
SendClientMessage(playerid, 0xAAAAAAAA, msg);
playerSpeed[playerid] = Zspeed;
}
}