Check points....
#3

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/mission", cmdtext, true, 10) == 0)
	{
		if(GetPlayerVehicleID == YOUR vehID here!) SetPlayerCheckpoint(playerid, COORDINATES here, 3.0);
		return 1;
	}
	return 0;
}
Код:
public OnPlayerEnterCheckpoint(playerid)
{
	GivePlayerMoney(playerid, 1000);
	DisablePlayerCheckpoint(playerid);
	return 1;
}
Rep would be nice if this did help you =)
tought im on phone so if there is a mistake im sorry

EDIT:
If you need to create more than one checkpoints, you can use this instead:

Код:
public OnPlayerEnterCheckpoint(playerid)
{
	GivePlayerMoney(playerid, 1000);
	DisablePlayerCheckpoint(playerid);
        SetPlayerCheckpoint(playerid, NEW coordinates, 3.0);
	return 1;
}
OR if you're making checkpoints like in a race, you can use SetPlayerRaceCheckpoint
https://sampwiki.blast.hk/wiki/SetPlayerRaceCheckpoint
Reply


Messages In This Thread
Check points.... - by viddo - 10.03.2012, 20:58
Re: Check points.... - by Nicholas. - 10.03.2012, 21:12
Re: Check points.... - by GNGification - 10.03.2012, 21:35

Forum Jump:


Users browsing this thread: 3 Guest(s)