05.10.2014, 04:58
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;
}