16.04.2016, 07:53
try this
PHP код:
CMD:pizza(playerid,params[])
{
new newcar = GetPlayerVehicleID(playerid);
if(vehicleVariables[newcar][vVehicleJob] != 6 && playerVariables[playerid][pJob] != 6) return SCM(playerid,-1,"You are not a pizza boy.");
if(playerVariables[playerid][pPiz] != 0) return SCM(playerid,-1,"You can use pizza every 2 minutes.");
IsDeliveringPizza[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;
return 1;
}