new Text:borton[MAX_PLAYERS];new Text:extrainfo[MAX_PLAYERS];new Text:nevtext[MAX_PLAYERS];new Text:datum;new Text:M_Box[MAX_PLAYERS];new Text:M_Seb[MAX_PLAYERS]; //sebességnew Text:M_All[MAX_PLAYERS]; //állapotnew Text:M_Uzemanyag[MAX_PLAYERS]; // üzemanyagnew BenzinSebessegBenzin[MAX_PLAYERS];new Text:Box[MAX_PLAYERS];new Text:Ft[MAX_PLAYERS];//forintnew Text:hpbar[MAX_PLAYERS];//hpnew Text:armourbar[MAX_PLAYERS]; //armorpublic SebBenBen(playerid) //timer{new Str[128];format(Str, sizeof(Str), \"~y~%d ~w~km/h\", GetVehicleSpeed(GetPlayerVehicleID(playerid)));TextDrawSetString(M_Seb[playerid], Str);new Float: vHealth;GetVehicleHealth( GetPlayerVehicleID(playerid), vHealth );new vHealth_INT = floatround( vHealth, floatround_round);new Str2[128];format(Str2, sizeof(Str2), \"~y~Állapot: ~w~%d\", vHealth_INT);TextDrawSetString(M_All[playerid], Str2);new Str3[128];new liter;liter = JarmuInfo[GetPlayerVehicleID(playerid)][uzemanyag];format(Str3, sizeof(Str3), \"~y~Üzemanyag: ~w~%d%\", liter);TextDrawSetString(M_Uzemanyag[playerid], Str3);}
forward SebBenBen();public SebBenBen() //timer{new Str[128];for(new i; i < MAX_PLAYERS: i++) {if(!IsPlayerConnected(i)) continue;format(Str, sizeof(Str), \"~y~%d ~w~km/h\", GetVehicleSpeed(GetPlayerVehicleID(i)));TextDrawSetString(M_Seb, Str);new Float: vHealth;GetVehicleHealth( GetPlayerVehicleID(i), vHealth );new vHealth_INT = floatround( vHealth, floatround_round);new Str2[128];format(Str2, sizeof(Str2), \"~y~Állapot: ~w~%d\", vHealth_INT);TextDrawSetString(M_All, Str2);new Str3[128];new liter;liter = JarmuInfo[GetPlayerVehicleID(i)][uzemanyag];format(Str3, sizeof(Str3), \"~y~Üzemanyag: ~w~%d%\", liter);TextDrawSetString(M_Uzemanyag, Str3);}}