[FilterScript] [FS] Fuel System ( 100% working *TESTED* )
#1

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 )
Reply
#2

I don't know why, But I'm pretty sure I saw it already, copied textdraws?
Reply
#3

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
Reply
#4

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.
Reply
#5

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
Reply
#6

1.
pawn Код:
#define CAR_AMOUNT 1000
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.
pawn Код:
NoFuel[playerid] = 1;
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
Reply
#7

pawn Код:
NoFuel[playerid] = 0;
added on the script!
Reply
#8

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
Reply
#9

nice, you should add a /setfuel for admins xD
Reply
#10

Most of this code is from the GF >.<
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)