Jump to content
  • 0

Problema Pizza Boy job


MytzaMytz

Question

Buna ziua,

 

Am o problema de care nu pot da de capat, job-ul merge bine ,dar are un bug, dupa ce dau /pizza ma trimite la un checkpoint si imi da 15.000$ , dupa aceea ma trimite pe un camp si acolo e alt checkpont, iar daca intru in el imi da bani incontinuu, daca stie cineva cum pot rezolva acest bug.

 

Ce am in GM:

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;
}

+

if(vehicleVariables[carid][vVehicleJob] == 6)
            {
                PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
                DisablePlayerCheckpoint(playerid);
                playerVariables[playerid][pMoney] += 15000;
                new house;
                house = random(systemVariables[houseCount]);
                SetPlayerCheckpoint(playerid, houseVariables[house][hHouseExteriorPos][0], houseVariables[house][hHouseExteriorPos][1], houseVariables[house][hHouseExteriorPos][2], 5.0);
                format(string, sizeof(string), "~r~Ai castigat ~n~~w~ $15000!");
                GameTextForPlayer(playerid, string, 3000, 1);
            }
        }
        return 1;
    }
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
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(sizeof(houseVariables));
SetPlayerCheckpoint(playerid, houseVariables[house][hHouseExteriorPos][0], houseVariables[house][hHouseExteriorPos][1], houseVariables[house][hHouseExteriorPos][2], 1.5);
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;
}
 
 
if(vehicleVariables[carid][vVehicleJob] == 6)
{
new randpay = 3400 + random(15);
playerVariables[playerid][pMoney] += randpay;
     SetTimerEx("RESETTH", 4000, 0, "d", playerid);
TELEPORTHACK[playerid] = -1;
DisablePlayerCheckpoint(playerid);
new house;
            house = random(sizeof(houseVariables));
SetPlayerCheckpoint(playerid, houseVariables[house][hHouseExteriorPos][0], houseVariables[house][hHouseExteriorPos][1], houseVariables[house][hHouseExteriorPos][2], 1.5);
playerVariables[playerid][pCheckpoint] = 0;
format(string, sizeof(string), "~r~Ai castigat ~n~~w~ +$%d", randpay);
GameTextForPlayer(playerid, string, 3000, 1);
}
 
Incearca asta;)
  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.