Am I doing something wrong?
#1

Hey there, I just wanted to ask quickly if I am doing something wrong.

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;
}
I have a quick question where exactly do I put the checkpoints? As the player enters them they disappear?
Reply
#2

OnPlayerPickUpPickup()
And there DisablePlayerCheckpoint();
Reply
#3

Quote:
Originally Posted by Drebin
Посмотреть сообщение
OnPlayerPickUpPickup()
And there DisablePlayerCheckpoint();
I know the functions. Where exactly?
Reply
#4

Quote:
Originally Posted by Drebin
Посмотреть сообщение
OnPlayerPickUpPickup()
And there DisablePlayerCheckpoint();
no....

public OnPlayerEnterCheckpoint(playerid)

Add an if statement - if(thisismycheckpoint) - do stuff inside of it like create a new one going to the next..or whatever you're going to do
Reply
#5

Lol WTF did i write D:
Ofc it's OnPlayerEnterCheckpoint
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)