echo Executing Server Config...rcon_password -----maxplayers 50port 7777hostname Join if you daremapname Secretlandgamemode0 mod 1announce 1query 1chatlogging 1weburl www.google.comonfoot_rate 40incar_rate 40weapon_rate 40stream_distance 300.0stream_rate 1000maxnpc 0logtimeformat [%H:%M:%S]language Englishplugins crashdetect sscanf
public Speedometer(){new vehicleid, Float:health;new fstring[32], string[512], holder[128], stringa[128]; foreach (new i : Player){ if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i)) { vehicleid = GetPlayerVehicleID(i); GetVehicleHealth(vehicleid, health); GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective); new uzemanyagtext[18]; switch(VehicleUzemanyag[vehicleid]) { case 3: uzemanyagtext = \"-\"; case 2: uzemanyagtext = \"K\"; case 1: uzemanyagtext = \"B\"; case 0: uzemanyagtext = \"D\"; } string = \"~w~\"; strcat(string, \"~w~~h~Üzemanyag: ~g~\", sizeof(string)); strcat(holder, stringa, sizeof(holder)); fstring = \"iiiiiiiiii\"; if(Fuel[vehicleid] > 100.0) strins(fstring, \"~r~\", 10, sizeof(fstring)); else if(Fuel[vehicleid] < 0.0) strins(fstring, \"~r~\", 0, sizeof(fstring)); else strins(fstring, \"~r~\", floatround(Fuel[vehicleid]/10.0), sizeof(fstring)); strcat(string, fstring, sizeof(string)); strcat(string, \"~n~~w~~h~\", sizeof(string)); if(GetPVarInt(i, \"Speedo\")) format(fstring,sizeof(fstring),\"Sebesség: ~w~%d MP/H\", GetPlayerSpeed(i, false)); else format(fstring,sizeof(fstring),\"Sebesség: ~w~%d KM/H\", GetPlayerSpeed(i, true)); strcat(string, fstring, sizeof(string)); TextDrawSetString(SpeedoText, string); }}}
strcat(string, \"~w~~h~Üzemanyag: ~g~\", sizeof(string));
new UzemanyagText[4][2] = {\"D\",\"B\",\"K\",\"-\"};new uzemanyag_id = VehicleUzemanyag[vehicleid];format(string,sizeof(string),\"Üzemanyag: %s\",UzemanyagText[uzemanyag_id]);strcat(main_string,string);
Ha egy globál TD-t berakok selectablenek, és megjelenítem 2 játékosnak és az egyik rákattint akkor azt a másik látja vagy nem? Mivel globál TD ezért szerintem lehet de azonban a clickTDnél csak a playeridre vonatkozik ezert nem tudom Letesztelni meg nem tudtam. Ebben kérném a segitségeteket.