}
CMD:fun2(playerid, params[]) {
if(IsPlayerInAnyVehicle(playerid) == 1) {
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
SetVehiclePos(GetPlayerVehicleID(playerid),-2245.6665,-212.5702,35.6618);
} else {
RemovePlayerFromVehicle(playerid);
SetPlayerPos(playerid,-2245.6665,-212.5702,35.6618);
SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,-2245.6665,-212.5702,35.6618);
SetCameraBehindPlayer(playerid);
}
SetPlayerVirtualWorld(playerid,0);
SetPlayerInterior(playerid,0);
return 1;
}
Tess