06.06.2011, 16:38
Ok i made a /ls command to teleport you to ls but in the orignial way i wnat in dcmd but i this commadn i made it to teleport with car and in dcmd i want it to .here is my command:
Код:
{ if(IsPlayerInAnyVehicle(playerid)) { SetVehiclePos(GetPlayerVehicleID(playerid), 2497.0798, -1666.4255, 13.3438); LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0); } else { SetPlayerPos(playerid, 2497.0798, -1666.4255, 13.3438); } new playername[MAX_PLAYER_NAME], string[90]; GetPlayerName(playerid, playername, sizeof(playername)); format(string, sizeof(string), "%s has been teleported to Los Santos.", playername); SendClientMessageToAll(0xFFFF00AA, string); return 1; }