job checkpoints
#2

May this will help you

pawn Код:
#include <a_samp>

// variable
new lawnmower[MAX_PLAYERS];

public OnPlayerEnterCheckpoint(playerid)
{
    if(lawnmower[playerid] == 1)
    {
        lawnmower[playerid] =2;
        SetPlayerCheckpoint(playerid, size,x,y,z);
    }
    if(lawnmower[playerid] == 2)
    {
        lawnmower[playerid] =3;
        SetPlayerCheckpoint(playerid, size,x,y,z);
    }
    if(lawnmower[playerid] == 3)
    {
        lawnmower[playerid] =4;
        SetPlayerCheckpoint(playerid, size,x,y,z);
    }
    // this for your las checkpoint (finish the job)
    if(lawnmower[playerid] == 4)
    {
        lawnmower[playerid] =0;
        DisablePlayerCheckpoint(playerid);
        SendClientMessage(playerid,-1,"** You has finished the job!");
        GivePlayerMoney(playerid,100000)
    }
    return 1;
}
Reply


Messages In This Thread
job checkpoints - by Bek_Loking - 25.06.2014, 19:57
Re: job checkpoints - by VenomMancer - 25.06.2014, 20:28
Re: job checkpoints - by WardenCS - 25.06.2014, 20:31
Re: job checkpoints - by Bek_Loking - 25.06.2014, 21:18
Re: job checkpoints - by Bek_Loking - 25.06.2014, 21:38

Forum Jump:


Users browsing this thread: 1 Guest(s)