[Pomoc] /fill komanda

Započeo yabb3
12. Okt. 2013. Zaključano
397
pregleda
4
postova
Stefan_Salvatore
4
Enforcer
12. Okt. 2013.
Skripta koju koristim: Ravens edit.
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;
}
kraljsvemira
3
Hustler
12. Okt. 2013.
a kako gasis vozilo ?
kraljsvemira
3
Hustler
13. Okt. 2013.
Probaj ovako pa vidi ocel radit :
if(strcmp(cmd, "/fill", true) == 0)
        {
            if(IsPlayerConnected(playerid))
            {
             
                if(!engineOn[GetPlayerVehicleID(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!");
                        }
                }
                else
                {
                        SendClientMessage(playerid,COLOR_GREY, " Moras ugasiti motor vozila.");
                }
                }
        return 1;
        }

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha