Checkpoint...
#1

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?
Reply
#2

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);
Reply
#3

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.
Reply
#4

The car ID have to be over 400 and less than 611
Reply
#5

Here's a problem:
Код:
new GPCar = CreateVehicle( 211, 2454.2190, -1639.2618, 17.9514, 0, 0, 0, 60 );
Reply
#6

Yeah) the car ID was problem:P

Thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)