stock SetPlayerVehiclePos(playerid, Float:X, Float:Y, Float:Z){if (IsPlayerInAnyVehicle(playerid) == 0 || IsPlayerConnected(playerid) == 0) return 0;return SetVehiclePos(GetPlayerVehicleID(playerid), X, Y, Z);}
if (strcmp(\"/EngemTeleportaljEl\", cmdtext, true) == 0){SetPlayerPos(playerid, 0.0, 0.0, 0.0);return 1;}
if (strcmp(\"/AKocsimIsTeleportald\", cmdtext, true) == 0){SetPlayerVehiclePos(playerid, 0.0, 0.0, 0.0);return 1;}
if (strcmp(cmdtext, \"/tele1\",true)==0){ //az utolsó 0 az interiorNormalTele(playerid, 1,1,1 ,0); // kocsit és játékos teleportreturn 1;}if (strcmp(cmdtext, \"/tele2\",true)==0){ //az utolsó 0 az interiorPlayerTele(playerid, 1294.9669,-711.6583,93.0370 ,0); // csak játékos teleportreturn 1;}
stock NormalTele(playerid, Float:x, Float:y, Float:z, interior) // ez a játékost és a kocsit is teleportálja{if( IsPlayerInAnyVehicle(playerid)){ new vehid = GetPlayerVehicleID(playerid); SetVehiclePos(vehid, Float:x, Float:y, Float:z); LinkVehicleToInterior(vehid, interior); SetPlayerInterior(playerid, interior); SetVehicleZAngle(vehid,0.0); SetCameraBehindPlayer(playerid);} else { SetPlayerPos(playerid, Float:x, Float:y, Float:z); SetPlayerInterior(playerid, interior); SetCameraBehindPlayer(playerid);}return PlayerPlaySound(playerid, 1085, x, y, z);}stock PlayerTele(playerid, Float:x, Float:y, Float:z, interior) // ez csak a játékost{SetPlayerPos(playerid, Float:x, Float:y, Float:z); SetPlayerInterior(playerid, interior); SetCameraBehindPlayer(playerid);return PlayerPlaySound(playerid, 1085, x, y, z);}
if (strcmp(cmdtext, \"/tele2\",true)==0){ SetPlayerPos(playerid, x, y, z, 0); SetVehiclePos(vehid, Float:x, Float:y, Float:z); IsPlayerInAnyVehicle(playerid) return 1;}Ez jó igy nem ?
if(strcmp(cmdtext,\"/teleport\",true) == 0){ if(IsPlayerInAnyVehicle(playerid)) return SetVehiclePos(GetPlayerVehicleID(playerid), X,Y,Z);else SetPlayerPos(playerid,X,Y,Z); return 1;}