- 0
Bug /fill
-
Similar Content
-
- 7 replies
- 635 views
-
- 10 answers
- 3.218 views
-
- 3 answers
- 892 views
-
- 16 answers
- 2.620 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.

Question
Madu99
Sall am si eu o problema :o3 Cnad dau /fill la gaz station zice "unknown comand" iar daca dau in alta parte zice "you`re not at gas station" nu inteleg de ce zice ca nu exista comanda :-??
[pawn]if(strcmp(cmd, "/fill", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsAtGasStation(playerid))
{
if(Gas[gLastCar[playerid]] > 100)
{
SendClientMessage(playerid,COLOR_GREY," You have more than 100 fuel.");
return 1;
}
GameTextForPlayer(playerid,"~w~~n~~n~~n~~n~~n~~n~~n~~n~~n~Re-Fueling Vehicle, please wait",2000,3);
SetTimer("Fillup",RefuelWait,0);
Refueling[playerid] = 1;
}
else
{
SendClientMessage(playerid,COLOR_GREY," You're not at a Gas Station!");
}
}
return 1;
}
if(strcmp(cmd, "/fillcar", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pFuel] > 0)
{
if(Gas[gLastCar[playerid]] < 81)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, " You filled your car with 20 percent Fuel from your Gas Can.");
Gas[gLastCar[playerid]] += 20;
PlayerInfo[playerid][pFuel] = 0;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Your Car still got enough Fuel to drive with !");
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You have no Fuel left in your Gas Can !");
}
}
return 1;
}[/pawn]
2 answers to this question
Recommended Posts