Jump to content
  • 0

Problema comanda


Ainox

Question

Ero(area / rile) / warning-(ul / urile): Comanda /pizza nu functioneaza, cand ma urc pe scuter nu se intampla nimic, iar daca ma dau jos imi spune ca nu am jobul, desi il am.
Liniile de cod / sursa / script-ul(obligatoriu): CMD:pizza(playerid,params[])
{
    new newcar = GetPlayerVehicleID(playerid);
    if(vehicleVariables[newcar][vVehicleJob] == 6 && playerVariables[playerid][pJob] == 6)
    {
        if(playerVariables[playerid][pPiz] == 0)
        {
            PlayerIsSweeping[playerid] = 1;
            new house;
            house = random(systemVariables[houseCount]);
            SetPlayerCheckpoint(playerid, houseVariables[house][hHouseExteriorPos][0], houseVariables[house][hHouseExteriorPos][1], houseVariables[house][hHouseExteriorPos][2], 5.0);
            SendClientMessage(playerid, COLOR_WHITE, "Your working hours is up! Go to red checkpoint.");
            playerVariables[playerid][pPiz] = 120;
        }
        else SCM(playerid,-1,"You can use /pizza only at 2 minutes.");    
    }
    else SCM(playerid,-1,"You are not a pizza boy.");
    return 1;
}

Imagini / Video (optional):
Ati incercat sa rezolvati singur?: Da..

                                                                                                 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Ti-am recreeat comanda(am si optimizat-o un pic). Incearca acum:

CMD:pizza(playerid,params[])
{
    new newcar = GetPlayerVehicleID(playerid), house;
    if(newcar != 448)           			 SCM(playerid, -1, "You aren't in a pizza boy"            );
    if(playerVariables[playerid][pJob] == 6) SCM(playerid, -1, "You are not a pizza boy."              );
    if(playerVariables[playerid][pPiz] == 0) SCM(playerid, -1, "You can use /pizza only at 2 minutes.");
    PlayerIsSweeping[playerid] = 1;
    house = random(systemVariables[houseCount]);
    SetPlayerCheckpoint(playerid, houseVariables[house][hHouseExteriorPos][0], houseVariables[house][hHouseExteriorPos][1], houseVariables[house][hHouseExteriorPos][2], 5.0);
    SendClientMessage(playerid, COLOR_WHITE, "Your working hours is up! Go to red checkpoint.");
    playerVariables[playerid][pPiz] = 120;
    return 1;
}

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.