27.03.2018, 20:01
helo i want to check speed vehicle and to show to player with /speed for first.
I watch tutorials and topics and i don't know..i'm confuse
in game /speed don't work , don't show the speed. Why?Can some explain detalied?
I watch tutorials and topics and i don't know..i'm confuse
PHP код:
stock GetVehicleSpeed(vehicleid)
{
new Float:V[3];
GetVehicleVelocity(vehicleid, V[0], V[1], V[2]);
return floatround(floatsqroot(V[0] * V[0] + V[1] * V[1] + V[2] * V[2]) * 180.00);
}
PHP код:
CMD:speed(playerid)
{
new string[128];
format(string,sizeof(string),"Viteza actuala %i!",GetVehicleSpeed(playerid));
SendClientMessage(playerid,-1,string);
return 1;
}


