07.12.2013, 14:39
So i have looked at quite a lot of tutorials but still can't get it to work?
Here is the code:
It compiles fine but in game it doesn't work?
It is suppost to teleport WITH the car however it doesn't.
Any help appreciated!
Here is the code:
Код:
if(strcmp(cmd, "/lsair", true) == 0) {
if(InDM[playerid] == 1)
{
SendClientMessage(playerid, COLOR_RED, "Please type /leavedm first!");
return 1;
}
else
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new getv = GetPlayerVehicleID(playerid);
SetVehiclePos(getv,1643.1212,-2419.4958,13.2818);
SetPlayerPos(playerid,1643.1212,-2419.4958,13.2818);
PutPlayerInVehicle(playerid,getv,0);
return 1;
}
else
{
SetPlayerPos(playerid, 1648.6609,-2414.7664,13.5547);
return 1;
}
}
}
It is suppost to teleport WITH the car however it doesn't.
Any help appreciated!

