26.01.2012, 16:35
That means you need to explain more about your situation.
Anyway I guess you meant the car isn't teleporting with the player, am I right?
Try this:
Anyway I guess you meant the car isn't teleporting with the player, am I right?
Try this:
pawn Код:
new Vehicle;
if(strcmp(cmd,"/nascar", true) == 0)
{
SetPlayerPos(playerid,1433.4521,1504.1399,10.8203);
if(IsPlayerInAnyVehicle(playerid)) {
Vehicle = GetPlayerVehicleID(playerid); SetVehiclePos(Vehicle,1433.4521,1504.1399,10.8203);
PutPlayerInVehicle(Vehicle); }
return 1;
}
if(strcmp(cmd,"/sf", true) == 0)
{
SetPlayerPos(playerid,-1898.6420,243.1353,41.0469);
if(IsPlayerInAnyVehicle(playerid)) {
Vehicle = GetPlayerVehicleID(playerid); SetVehiclePos(Vehicle,-1898.6420,243.1353,41.0469);
PutPlayerInVehicle(Vehicle); }
return 1;
}