if(strcmp(\"/ls\", cmdtext, true, 10) == 0){IsPlayerInAnyVehicle(playerid)) //ezzel megvizsgálod h a játékos jármüben van-eSetPlayerPos(playerid, 2304.2654,-1640.6647,14.5278);SendClientMessage(playerid, 0x3300FFAA, \"Los Santos\");SetPlayerFacingAngle(playerid, 180.0525);}else{ //ha mégsincs kocsibanSetPlayerPos(playerid, 2304.2654,-1640.6647,14.5278);SendClientMessage(playerid, 0x3300FFAA, \"Los Santos\");SetPlayerFacingAngle(playerid, 180.0525);return 1;}
if(strcmp(\"/ls\", cmdtext, true, 10) == 0){IsPlayerInAnyVehicle(playerid)) //ezzel megvizsgálod h a játékos jármüben van-enew vehicleid;vehicleid = GetPlayerVehicleID(playerid);SetVehiclePos(vehicleid, 2304.2654,-1640.6647,14.5278);SendClientMessage(playerid, 0x3300FFAA, \"Los Santos\");SetPlayerFacingAngle(playerid, 180.0525);}else{ //ha mégsincs kocsibanSetPlayerPos(playerid, 2304.2654,-1640.6647,14.5278);SendClientMessage(playerid, 0x3300FFAA, \"Los Santos\");SetPlayerFacingAngle(playerid, 180.0525);return 1;}
cmd:ls(playerid,params[]){#pragma unused params //kilõjjük a params-otIsPlayerInAnyVehicle(playerid) { //ezzel megvizsgálod h a játékos jármüben van-enew vehicleid;vehicleid = GetPlayerVehicleID(playerid);SetVehiclePos(vehicleid, x,y,z); //Természetesen az x, y, z helyére a koordinátát írod lent isSendClientMessage(playerid, 0x3300FFAA, \"Los Santos\");SetPlayerFacingAngle(playerid, 180.0525);}else{ //ha mégsincs kocsibanSetPlayerPos(playerid, x,y,z);SendClientMessage(playerid, 0x3300FFAA, \"Los Santos\");SetPlayerFacingAngle(playerid, 180.0525);return 1;}
cmd:ls(playerid,params[]){#pragma unused params //kilõjjük a params-otIsPlayerInAnyVehicle(playerid) //ezzel megvizsgálod h a játékos jármüben van-enew vehicleid;vehicleid = GetPlayerVehicleID(playerid);SetVehiclePos(vehicleid, x,y,z); //Természetesen az x, y, z helyére a koordinátát írod lent isSendClientMessage(playerid, 0x3300FFAA, \"Los Santos\");SetPlayerFacingAngle(playerid, 180.0525);}else{ //ha mégsincs kocsibanSetPlayerPos(playerid, x,y,z);SendClientMessage(playerid, 0x3300FFAA, \"Los Santos\");SetPlayerFacingAngle(playerid, 180.0525);return 1;}