[FS] Fuel System ( 100% working *TESTED* ) -
Milice - 17.11.2008
This is another Fuel System, this is using "TextDraw" looks better then the normal GameTextForPlayer
This is Made By MiLice.. if you PM me and if i have time, i might make some script for you (free ofc)^^
Screenshot:
Download link:
DOWNLOAD bugfix ( speedyshare ) ( including sources and a readme file )
Re: Fuel System -
MenaceX^ - 17.11.2008
I don't know why, But I'm pretty sure I saw it already, copied textdraws?
Re: Fuel System -
Milice - 17.11.2008
Quote:
Originally Posted by MenaceX
I don't know why, But I'm pretty sure I saw it already, copied textdraws?
|
no, i did this by myself
Re: [FS] Fuel System ( 100% working *TESTED* ) -
Jokel317 - 19.11.2008
Some reason when I use this I have to be player id 0 or it dont work but my other players can be 0,1 etc works fine for them.
Re: [FS] Fuel System ( 100% working *TESTED* ) -
Milice - 19.11.2008
Quote:
Originally Posted by Jokel317
Some reason when I use this I have to be player id 0 or it dont work but my other players can be 0,1 etc works fine for them.
|
okay
what sa-mp version are ya using? :P
Re: [FS] Fuel System ( 100% working *TESTED* ) -
pspleo - 19.11.2008
1.
Max cars is 700, why 1000?
2.
pawn Код:
new Text:vehht;
TextDrawDestroy(Text:vehht);
//some if's...
new vhealth[256];
new Float:vehhealth;
GetVehicleHealth(vehid, vehhealth);
format(vhealth, sizeof(vhealth), "~p~Vehicle info ~n~~r~Health:~w~ %.0f~n~~g~Fuel:~w~ %d%",vehhealth,Gas[vehid]);
vehht = TextDrawCreate(500, 415, vhealth);
You're destroying the textdraw, and creating a new every second? Try with TextDrawSetString.
3.
NoFuel assigned to playerid? IMO vehicleid would be much better.
4.
pawn Код:
if(strcmp(cmdtext, "/exitveh", true) == 0)
{
if(NoFuel[playerid] == 1)
{
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
no "NoFuel[playerid] = 0;" ?
5.
Indent your code.
This FS looks alright, good job
Re: [FS] Fuel System ( 100% working *TESTED* ) -
Milice - 19.11.2008
added on the script!
Re: [FS] Fuel System ( 100% working *TESTED* ) -
Jokel317 - 20.11.2008
I downloaded the update same thing. My client is SA-MP 0.2.2 R3 and my server version is SA:MP 0.2.2 Windows thanks
Re: [FS] Fuel System ( 100% working *TESTED* ) -
ReFuSeR - 20.11.2008
nice, you should add a /setfuel for admins xD
Re: [FS] Fuel System ( 100% working *TESTED* ) -
[ERP]Snow - 20.11.2008
Most of this code is from the GF >.<