- เครดิต
- 5
- ความรู้
-
- เงิน $
-
- ความดี
-
|
//==============================================================================
# เพิ่มไว้ล่างสุดของสคริปต์ก็ได้
public GostergeYenile()
{
for(new i=0; i<GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i) && Gosterge == 1)
{
TextDrawShowForPlayer(i, Text:ArkaPlan0);
TextDrawShowForPlayer(i, Text:ArkaPlan1);
TextDrawShowForPlayer(i, Text:ArkaPlan2);
TextDrawShowForPlayer(i, Text:ArkaPlan3);
TextDrawShowForPlayer(i, Text:ArkaPlan4);
TextDrawShowForPlayer(i, Text:ArkaPlan5);
TextDrawShowForPlayer(i, Text:ArkaPlan6);
new HGG[265]; new Float:Can;
GetVehicleHealth(GetPlayerVehicleID(i), Can);
GetPlayerPos(i,Xa,Ya,Za);
KMH = floatsqroot(floatpower(floatabs(floatsub(Xa,Xb)),2)+floatpower(floatabs(floatsub(Ya,Yb)),2)+floatpower(floatabs(floatsub(Za,Zb)),2));
KMH *= 14.2;
Yukseklik = Za;
format(HGG, sizeof(HGG), "~b~~h~~h~Name: ~w~%s~n~~g~~h~Speed: ~w~%0.0f km/h~n~~n~~y~~h~Height: ~w~%.1f m~n~~r~~h~Health: ~w~%.2f", ArIsim[GetVehicleModel(GetPlayerVehicleID(i))-400], KMH, Yukseklik, Can);
TextDrawSetString(Text:GostergeYazi, HGG);
TextDrawShowForPlayer(i, GostergeYazi);
if(KMH >= 250)
{
TextDrawTextSize(Hizg,603.000000,0.000000);
}
else
{
TextDrawTextSize(Hizg, floatadd(534.0, floatdiv(KMH, 3.900000)),0.000000);
}
TextDrawShowForPlayer(i, Hizg);
if(Can < 0)
{
TextDrawTextSize(Cang,538.000000,0.000000);
}
else if(Can >= 1000)
{
TextDrawTextSize(Cang,603.000000,0.000000);
}
else
{
TextDrawTextSize(Cang,floatadd(534.0, floatdiv(Can, 14.6000000)),0.000000);
}
TextDrawShowForPlayer(i, Cang);
TextDrawShowForPlayer(i, Cizgi);
}
else
{
TextDrawHideForPlayer(i, Text:GostergeYazi);
TextDrawHideForPlayer(i, Text:Hizg);
TextDrawHideForPlayer(i, Text:Cang);
TextDrawHideForPlayer(i, Text:ArkaPlan0);
TextDrawHideForPlayer(i, Text:ArkaPlan1);
TextDrawHideForPlayer(i, Text:ArkaPlan2);
TextDrawHideForPlayer(i, Text:ArkaPlan3);
TextDrawHideForPlayer(i, Text:ArkaPlan4);
TextDrawHideForPlayer(i, Text:ArkaPlan5);
TextDrawHideForPlayer(i, Text:ArkaPlan6);
TextDrawHideForPlayer(i, Text:Cizgi);
} GetPlayerPos(i,Xb,Yb,Zb), Xb = Xa; Yb = Ya; Zb = Z |
|