30.01.2011, 12:43
He means you have to do it this way:
Please note that if the player enters the vehicle and it's moved from it's original spawning position it won't respawn where the player is. This can be avoided by doing this:
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new
name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
SetVehicleNumberPlate(vehicleid, name);
SetVehicleToRespawn(vehicleid);
return 1;
}
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new
name[MAX_PLAYER_NAME], vx, vy, vz;
GetPlayerName(playerid, name, sizeof(name));
SetVehicleNumberPlate(vehicleid, name);
SetVehicleToRespawn(vehicleid);
SetVehiclePos(vehicleid, vx, vy, vz);
PutPlayerInVehicle(playerid, vehicleid, 0);
return 1;
}