23.10.2011, 17:04
You're missing a bracket, make sure you're indenting code properly so you can easily see where you're missing it:
Again you still have the problem of putting the player into the vehicle's MODEL instead of the vehicle's ID! You need to specify a vehicle ID.
Model ID's are not unique and therefore there is no possible way of the script knowing which vehicle you want to put the player in, that is why vehicle ID's exist, as they are unique to a specific vehicle in the server, which is why you use it in PutPlayerInVehicle so it knows where you want to put the player.
pawn Код:
COMMAND:challange(playerid, params[])
{
if( IsPlayerInRangeOfPoint( playerid, 7.0, 1017.3148, -929.1449, 420.1316 ) ) // change the '1, 2, 3' to the coords for bigjump 1 (example)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 411)// 411 is the infernus model
{
SetPlayerVirtualWorld(playerid, 1);
PutPlayerInVehicle(playerid, 411, 0);
}
}
return 1;
}
Model ID's are not unique and therefore there is no possible way of the script knowing which vehicle you want to put the player in, that is why vehicle ID's exist, as they are unique to a specific vehicle in the server, which is why you use it in PutPlayerInVehicle so it knows where you want to put the player.