26.02.2012, 03:39
Quote:
if(IsPlayerInRangeOfPoint(playerid, BLAH BLAH)
https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint |
pawn Код:
CMD:truck(playerid, params[])
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 455)
{
if(IsPlayerInRangeOfPoint(playerid, 3.0,-62.0572,-1121.8473,1.3233)) return SendClientMessage(playerid, COLOR_LIMEGREEN, "You have started the job. Proceed to the checkpoint");
{
truckjobrunning = 1;
SetPlayerCheckpoint(playerid, Checkpoint1, 3.0);
GameTextForPlayer(playerid, "~g~You have started the job.", 3000, 3);
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "You're not in range of the Truck Job. /jobhelp for more information");
}
return 1;
}