Help needed. Don`t understand why the checkpoint is not working?!
#1

Okay, I`m working on a little Garbage Truck Driving job and I wonder why when I enter the checkpoint, I don`t get 10 dollars, the check. it`s not destroyed and the next one it`s not appearing .. The code is here

Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
  if(GetVehicleModel(vehicleid) == 408)
	{
	  SendClientMessage(playerid, COLOR_GOLD, "A marker should appear on your GPS with the first location! Go get the junk!");
		SetPlayerCheckpoint(playerid, 2286.6111, 2337.5051, 10.6719, 5);
		if(IsPlayerInCheckpoint(playerid))
		{
 			SendClientMessage(playerid, COLOR_GOLD, "Good! You have just earned 10$! Continue your job until this city is clean.");
			GivePlayerMoney(playerid, 10);
			DisablePlayerCheckpoint(playerid);
 			SetPlayerCheckpoint(playerid, 2524.8174, 2318.0769, 10.6719, 5);
 			if(IsPlayerInCheckpoint(playerid))
  			{
  			SendClientMessage(playerid, COLOR_GOLD, "Checkpoint reached, proceed to the next one!");
		    GivePlayerMoney(playerid, 10);
		    DisablePlayerCheckpoint(playerid);
		    return 1;
			}
		return 1;
		}
	return 1;
	}
else SendClientMessage(playerid, COLOR_GOLD, "You must use a Garbage Truck! Go get one!");
return 1;
}
Reply


Messages In This Thread
Help needed. Don`t understand why the checkpoint is not working?! - by sobolanux - 09.04.2010, 22:47
Re: Help needed. Don`t understand why the checkpoint is not working?! - by Sascha - 10.04.2010, 00:51
Re: Help needed. Don`t understand why the checkpoint is not working?! - by sobolanux - 10.04.2010, 10:40
Re: Help needed. Don`t understand why the checkpoint is not working?! - by Hiddos - 10.04.2010, 12:04

Forum Jump:


Users browsing this thread: 1 Guest(s)