10.02.2012, 14:43
Hey there, I just wanted to ask quickly if I am doing something wrong.
I have a quick question where exactly do I put the checkpoints? As the player enters them they disappear?
pawn Код:
CMD:clearnstreet(playerid, params[]) {
if(jobVariables[playerVariables[playerid][pJob]][jJobType] == 5 || playerVariables[playerid][pAdminDuty] >= 1) {
if(IsPlayerInAnyVehicle(playerid)) {
new
vehString[72],
Float: soPos[3],
vehicleID = GetPlayerVehicleID(playerid);
if(playerVariables[playerid][pJobDelay] == 0) { // DELAY!1
format(vehString, sizeof(vehString), "Start cleaning %s.", VehicleNames[GetVehicleModel(vehicleID) - 400]);
SendClientMessage(playerid, COLOR_WHITE, vehString);
playerVariables[playerid][pJobDelay] = 120;
}
else {
format(vehString, sizeof(vehString), "You need to wait %d seconds until you can clean the streets again.",playerVariables[playerid][pJobDelay]);
SendClientMessage(playerid, COLOR_GREY, vehString);
}
}
}
return 1;
}