Hey Ich habe ein Tacho für meinen server gedownloadet doch leider weiß ich nicht wie ich das schaffe das das nur die person sehen kann die im auto sitzt ?
hier Public Speedometer
public Speedometer(playerid)
{
if(IsPlayerInAnyVehicle(playerid))
{
new vehicleid = GetPlayerVehicleID(playerid), Float:speed_x, Float:speed_y, Float:speed_z, Float:final_speed, speed_string[256], final_speed_int, Float:chealth, LocationZone[MAX_ZONE_NAME], m = GetVehicleModel(vehicleid), f;
for(new i = 0; i<MAX_VEHICLES; i++)
{
if(GetPlayerVehicleID(playerid) == PlayerCar[i][vid])
{
f = PlayerCar[i][Fuel];
}
}
m -= 400;
GetVehicleVelocity(vehicleid,speed_x,speed_y,speed_z);
final_speed = floatsqroot(((speed_x*speed_x)+(speed_y*speed_y))+(speed_z*speed_z))*144; // 136.666667 = kmph // 85.4166672= mph
final_speed_int = floatround(final_speed,floatround_round);
GetVehicleHealth(vehicleid, chealth);
GetPlayer2DZone(playerid, LocationZone, MAX_ZONE_NAME);
format(speed_string,200,"~B~Fahrzeug: ~W~%s~n~~B~Km/h: ~W~%d km/h~n~~B~Zustand: ~W~%d%%~n~~B~Benzin: ~W~%d%%~n~~B~GPS: ~W~%s",PlayerVehicle[m], final_speed_int, floatround(chealth, floatround_round)/10, f, LocationZone);
TextDrawSetString(Tacho[playerid], speed_string);
return 1;
}
else
{
TextDrawHideForPlayer(playerid, Tacho[playerid]);
}
return 1;
}
Wie mache ich das den jetzt
pls help ist sehr wichtig ! ;D
MFG