Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: privcary
1. [DM] Privcary
M?j problem polega na privcarach i ich 3dtextach. Niby wszystko ?adnie, ale gdy na serwie b?dzie +2 privcary to zaczyna si? jazda. Labele si? mieszaj? i np u ciebie pisze ?e to jest auto kogo? innego(chociaz jest twoje), a u kogo? moze nic nie pisa?, albo nad g?ow? ten 3dtext jest xd


Kod:

forward Pojazd(i);
public Pojazd(i)
{
new s[128], Float:ST[4], vehicleid;
vehicleid = GetPlayerVehicleID(i);

GetVehicleVelocity(vehicleid, ST[0], ST[1], ST[2]);
ST[3] = floatsqroot(floatpower(floatabs(ST[0]), 2.0) + floatpower(floatabs(ST[1]), 2.0) + floatpower(floatabs(ST[2]), 2.0)) * 179.28625;

Dist[vehicleid] += ST[3]/2000;

format(s, 128, "t"L_GREEN"%sn"WHITE"Prywatny pojazd gracza "L_GREEN"%snPrzebieg: %.1f KM", vehicleName[GetVehicleModel(vehicleid) - 400], Name(i), Dist[vehicleid]);
Update3DTextLabelText(vehicle3Dtext[vehicleid], 0, s);
return 1;
}