Hasznald igy:
Pl:
if (strcmp(cmdtext, \"/beach\", true) == 0) {
if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
SetVehiclePos(GetPlayerVehicleID(playerid), 825.9265,-1902.4384,12.8672);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 101.6788);
}
else
{
SetPlayerPos(playerid, 825.9265,-1902.4384,12.8672);
SetPlayerFacingAngle(playerid, 101.6788);
}
SetCameraBehindPlayer(playerid);
return 1;
}
Ha pedig akkor is kidob akkor:
new pseat = GetPlayerVehicleSeat(playerid);
Ezt a teleport utan rakd:
if (strcmp(cmdtext, \"/beach\", true) == 0) {
new pseat = GetPlayerVehicleSeat(playerid); // ide
majd azutan lessz hogy setplayerpos(...)
es utana rakd hogy
PutPlayerInVehicle(playerid, vehicleid, pseat);
Remelem nem mondtam hulyeseget,de azert probald ki.