Problem: kako da napravim da vozac mora ugasiti vozilo da bi napunio rezervoar isto tako da mu kaze i poruku morate ugasiti motor vozila da bi ste napunili rezervoar
Deo koda:
if(strcmp(cmd, "/fill", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsAtGasStation(playerid))
{
if(Gas <= 99)
{
TogglePlayerControllable(playerid, 0);
GameTextForPlayer(playerid,"~w~~n~~n~~n~~n~~n~~n~~n~~n~~n~Re-Fueling Vehicle, please wait",2000,3);
SetTimer("Fillup",RefuelWait,0);
Refueling = 1;
}
else
{
GameTextForPlayer(playerid,"~r~~n~~n~~n~~n~~n~~n~~n~~n~~n~Gas can is full",2000,3);
}
}
else
{
SendClientMessage(playerid,COLOR_GREY,"** You're not at a Gas Station!");
}
}
return 1;
}