- 0
3dSpeedometer
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
ionutuidumanu
Am un fs cu 3dspedometer vreau cand ies din masina sa dispara ca imi ramane acolo pe masina pana iau alta
Poftim liniile
public OnFilterScriptInit() { Speedoff = SetTimer("Speed", 500, 1); return 1; }
forward Speed();
public Speed()
{
for(new p = 0; p < GetMaxPlayers(); p++) if(IsPlayerConnected(p) && !IsPlayerNPC(p))
{
new vehicleid = GetPlayerVehicleID(p);
if(vehicleid)
{
new string[128], Float:X, Float:Y, Float:Z, Float:PointToPoint, Float:vhealth;
GetVehicleVelocity(vehicleid, X, Y, Z);
PointToPoint = (floatsqroot(floatpower(X, 2) + floatpower(Y, 2) + floatpower(Z, 2)))*100;
GetVehicleHealth(vehicleid,vhealth);
format(string,sizeof string ,"{F81414}Masina: %s\n{F3FF02}Rezistenta: %.2f\n{0049FF}Viteza: %ikm/h", VehicleName[GetVehicleModel(vehicleid)-400], vhealth, floatround(PointToPoint, floatround_floor));
DeletePlayer3DTextLabel(p, speedo3Dtext);
speedo3Dtext = CreatePlayer3DTextLabel(p, string, speedcolor, 0.0,-1.6,-0.35,20.0, INVALID_PLAYER_ID, vehicleid);
} else if(p) { DeletePlayer3DTextLabel(p, speedo3Dtext); }
}
}
The Legend
Link to comment
Share on other sites
21 answers to this question
Recommended Posts