- 0
Ajutor fuel system
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
wifi123
Salut , am si eu nevoie de ajutor. Am acest fisier in scriptfiles numit fuel si e in format tde cand in editez cu notepad arata asa:
[pawn]TDFile=yes
0T_Created=1
0T_Text=Fuel:
0T_X=269.000000
0T_Y=433.000000
0T_UseBox=0
0T_TextSizeX=353.000000
0T_TextSizeY=79.000000
0T_Color=-1
0T_BackColor=255
0T_BoxColor=16777215
0T_Alignment=1
0T_XSize=0.470000
0T_YSize=1.100000
0T_Outline=0
1T_Created=1
1T_Text=100%
1T_X=344.000000
1T_Y=434.000000
1T_XSize=0.400000
1T_YSize=1.000000
1T_UseBox=1
1T_TextSizeX=277.000000
1T_TextSizeY=68.000000
1T_Alignment=2
1T_Color=-1
1T_BackColor=255
1T_BoxColor=16777215
1T_Outline=1
1T_Shadow=1
2T_Created=1
2T_Text=
2T_X=344.000000
2T_Y=434.000000
2T_Alignment=2
2T_BackColor=255
2T_UseBox=1
2T_BoxColor=65535
2T_TextSizeX=276.000000
2T_TextSizeY=-76.000000
2T_Color=-1
2T_Font=1
2T_XSize=0.400000
2T_YSize=1.000000
2T_Outline=1
2T_Proportional=1
2T_Shadow=1
[/pawn]
Dar eu vreau sa fac altu gen asta:
[pawn]public CheckStatus()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerInAnyVehicle(i))
{
if(TextShow == false)
{
TextDrawShowForPlayer(i, Text:Black0);
TextDrawShowForPlayer(i, Text:Black1);
TextDrawShowForPlayer(i, Text:Black2);
TextDrawShowForPlayer(i, Text:Black3);
TextDrawShowForPlayer(i, Text:LightBlack);
TextShow = true;
}
new String[128];
new Float:X, Float:Y, Float:Z, Float:Speed;
new vehicle = GetPlayerVehicleID(i);
GetVehicleVelocity(GetPlayerVehicleID(i), X, Y, Z);
Speed = floatmul(floatsqroot(floatadd(floatadd(floatpower(X, 2), floatpower(Y, 2)), floatpower(Z, 2))), 100.0);
format(String,sizeof(String),"~b~ D-Board~n~~r~Fuel: ~w~%i~n~~r~km/h: ~w~%i", Gas[vehicle], floatround(Speed, floatround_floor));
if(VHSCreated == true)
{
TextDrawDestroy(VHS);
}
VHS = TextDrawCreate(541.000000,137.000000,String);
TextDrawAlignment(VHS,0);
TextDrawBackgroundColor(VHS,0x000000ff);
TextDrawFont(VHS,1);
TextDrawLetterSize(VHS,0.299999,1.000000);
TextDrawColor(VHS,0xffffffff);
TextDrawSetOutline(VHS,1);
TextDrawSetProportional(VHS,1);
TextDrawSetShadow(VHS,1);
TextDrawShowForPlayer(i, VHS);
VHSCreated = true;
}
else
{
if(TextShow == true)
{
TextDrawHideForPlayer(i, Text:Black0);
TextDrawHideForPlayer(i, Text:Black1);
TextDrawHideForPlayer(i, Text:Black2);
TextDrawHideForPlayer(i, Text:Black3);
TextDrawHideForPlayer(i, Text:LightBlack);
TextDrawHideForPlayer(i, Text:VHS);
TextShow = false;
}
}
}
}
}[/pawn]
CUM IL ADAUG IN GM ? SAU IN FISIERU ALA IN FORMAT TDE?
3 answers to this question
Recommended Posts