Jump to content
  • 0

Question

Posted

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

2 answers to this question

Recommended Posts

  • 0
Posted
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.