11.02.2011, 13:03
Код:
format(lstring,sizeof(lstring),"~b~Veiculo: ~w~%s~n~~b~Lataria: ~w~%.2f~n~~b~Gasolina: ~w~%.1f~n~~b~Gps: ~w~%s~n~~b~Status: %s",LVehiclesName[GetVehicleModel(GetPlayerVehicleID(i))-400],L_VehHealth,Gasosa,LuxZone,LVehicleStatus); TextDrawSetString(LFunc[i], lstring); format(lstr,sizeof(lstr),"%sMPH: ~w~%d %sKM/H: ~w~%d",MPH_KPH_Color,LMPH,MPH_KPH_Color,LKPH); TextDrawSetString(Lmph[i], lstr); if(L_VehHealth <= 500){ format(lstring,sizeof(lstring),"%sVeiculo: ~w~%s~n~%sLataria: ~w~~r~%.2f~n~%sGasolina: ~w~%.1f~n~%sGps: ~w~%s",CategoriesColor,LVehiclesName[GetVehicleModel(GetPlayerVehicleID(i))-400],CategoriesColor,L_VehHealth,CategoriesColor,Gasosa,CategoriesColor,LuxZone); TextDrawSetString(LFunc[i], lstring); } if(LKPH >= VehicleMaxSpeed) { TogglePlayerControllable(i,0); LUnFreeze = SetTimer("LuX_UnFreezeCar", 250, 1); format(lstr,sizeof(lstr),"~g~MPH: ~w~%d ~g~KM/H: ~r~%d",LMPH,LKPH); TextDrawSetString(Lmph[i], lstr); } } LuX_ReadPlayerPosition[i][ReadX] = LPosX, LuX_ReadPlayerPosition[i][ReadY] = LPosY, LuX_ReadPlayerPosition[i][ReadZ] = LPosZ;}