// Aight, create the main function public UpdateSpeed(){ new Float:x,Float:y,Float:z; new Float:distance,value,string[256]; for(new i=0; i 1){ value = floatround(value / UpdateSeconds); } // meters an hour if(SpeedMode){ format(string,sizeof(string),"~r~%d MPH",floatround(value/1600)); GameTextForPlayer(i, string, 1100, 4); } else{ format(string,sizeof(string),"~r~%d KPH",floatround(value/1000)); GameTextForPlayer(i, string, 1100, 4); } SavePlayerPos[i][LastX] = x; SavePlayerPos[i][LastY] = y; SavePlayerPos[i][LastZ] = z; } // End is-player-connected } // End for-loop } // eind UpdateSpeed function //Fuel check function public CheckFuel(playerid) { new Ptmess[32]; for(new i=0;i= 1) { format(Ptmess, sizeof(Ptmess), "~n~~n~~n~~n~~n~~r~Benzine %d", Petrol[Vi]); GameTextForPlayer(i, Ptmess, 5300, 5); } else { RemovePlayerFromVehicle(i); SendClientMessage(i, COLOR_RED, "Je auto heeft geen bezine meer!"); if(Petrol[Vi] < 0) { Petrol[Vi] = 0; } } if(Petrol[i] >= 51) { format(Ptmess, sizeof(Ptmess), "~n~~n~~n~~n~~n~~r~Benzine %d", Petrol[Vi]); GameTextForPlayer(i, Ptmess, 5300, 5); } } } } }