[HELP]Needs Help WithCheckpoints - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP]Needs Help WithCheckpoints (
/showthread.php?tid=399944)
[HELP]Needs Help WithCheckpoints -
Veeco - 16.12.2012
Hey

I Have Some Checkpoints Problem...
I Want So Player Can Enter Checkpoint With Vehicle.
That Can Players But.. They Can Enter Checkpoint Without Vehicle.....
I Want So Player Only Can Enter With Vehicle.
Re: [HELP]Needs Help WithCheckpoints -
[DOG]irinel1996 - 16.12.2012
What kind of checkpoint are you using? Normal one or race checkpoints?
Also, you can do that with
IsPlayerInAnyVehicle.
pawn Код:
public OnPlayerEnterRaceCheckpoint(playerid) //or OnPlayerEnterCheckpoint
{
if (!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "you're not in a vehicle");
//---keep scripting normally here.
return 1;
}