Checkpoint... - 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: Checkpoint... (
/showthread.php?tid=297531)
Checkpoint... -
Edvin - 16.11.2011
Hi,
I want to make a minigame( with checkpoints ) and i want to checkpoint number 15 to put player in vehicle. Now is the problem. When i put on OnPlayerEnterRaceCheckpoint this function to put you in vehicle:
Код:
if ( CC2 == 15 )
{
new GPCar = CreateVehicle( 211, 2454.2190, -1639.2618, 17.9514, 0, 0, 0, 60 );
PutPlayerInVehicle( playerid, GPCar, 0 );
}
And when i am at 15 Checkpoint, i don't get any car. What is the problem?
Re: Checkpoint... -
cruising - 16.11.2011
Quote:
Originally Posted by Edvin
Hi,
I want to make a minigame( with checkpoints ) and i want to checkpoint number 15 to put player in vehicle. Now is the problem. When i put on OnPlayerEnterRaceCheckpoint this function to put you in vehicle:
Код:
if ( CC2 == 15 )
{
new GPCar = CreateVehicle( 211, 2454.2190, -1639.2618, 17.9514, 0, 0, 0, 60 );
PutPlayerInVehicle( playerid, GPCar, 0 );
}
And when i am at 15 Checkpoint, i don't get any car. What is the problem?
|
you sure you use the right ID of ther car?
and it should be like
pawn Код:
PutPlayerInVehicle(playerid, vehicleid, 0);
Re: Checkpoint... -
admantis - 16.11.2011
Certainly .. 211 is an invalid vehicle id, I will guess you wanted 411 ( Infernus ) you should replace the model id from 211 to 411 and it should work.
Re: Checkpoint... -
Daddy Yankee - 16.11.2011
The car ID have to be over 400 and less than 611
Re: Checkpoint... -
sabretur - 16.11.2011
Here's a problem:
Код:
new GPCar = CreateVehicle( 211, 2454.2190, -1639.2618, 17.9514, 0, 0, 0, 60 );
Re: Checkpoint... -
Edvin - 16.11.2011
Yeah

) the car ID was problem:P
Thanks!