Closest station
#3

pawn Код:
CMD:loadtrailer(playerid, params[])
{
    if(!IsPlayerInRangeOfPoint(playerid, range,x, y, z)) // add in the range, x pos, y pos and z pos of the depot for the player to get the job, and if they aren't in range of it... It will set their checkpoint here.
    {
            PlayerStat[playerid][Removalist] = 1;
            SetPlayerCheckpoint(playerid, x,y, z, size of checkpoint); // Same here.  X pos, Y pos, Z pos, size of checkpoint.  I usually use 3.0
            SendClientMessage(playerid, ORANGE, "Head towards the depot, a location has been marked on your map");
    }
    else
    {
        SendClientMessage(playerid, GREY, "You are already at the depot area!");
    }
    return 1;
}
This should work, you'll just have to edit it if you want to change it around or add code
Reply


Messages In This Thread
Closest station - by Blademaster680 - 05.10.2014, 00:56
Re: Closest station - by PabloAguado - 05.10.2014, 01:10
Re: Closest station - by Josh_Main - 05.10.2014, 04:58
Re: Closest station - by Blademaster680 - 05.10.2014, 09:42
Re: Closest station - by MacT - 05.10.2014, 10:09
Re: Closest station - by Blademaster680 - 05.10.2014, 10:22

Forum Jump:


Users browsing this thread: 2 Guest(s)