Jump to content

RedDead

Members
  • Posts

    24
  • Joined

  • Last visited

Everything posted by RedDead

  1. no , i making teleports and i want coordinates for places
  2. as title says "how to save coordinates while playing"
  3. RedDead

    License mod

    hello guys , i want a mod witch make all cars locked and theres a place to learn driving if the drive was successful he get a license and drive cars
  4. i want a mod witch play on a music while all players playing after download
  5. as you were using it in the image. thats not me lol
  6. i dont mean the map just the defense mod I didn't give you map, i give you the gamemode that include the Police Shield. ok , how can i use the shield ?
  7. i dont mean the map just the defense mod
  8. the mod is police holds that to defend himself I want this mod
  9. thanks i will try it now
  10. is there a mod witch save your skin , money , weapons , and the last place you'er visited ? i want this mod for a roleplay server please answer fast i really need it
  11. i want roleplay rules script like if you join , after downloading the rules show up and theres "i accept" "i dont accept" if accept , the player can play , if no the player will logoff from the server automatically
  12. i'v downloaded a class chooser and i dont want the player,spawn where he putted in the script i want to make my own players , spawn point client.lua x, y = guiGetScreenSize() x2 = 2511.3748 * x y2 = y - -1668.2717 * y x3 = 13.5635* x y3 = y - 91.8790 * y skinsTable = { } function onClientResourceStart(startedResource) if startedResource == getThisResource() then triggerServerEvent("getSettings", root) setElementData(localPlayer, "alive", false) end end addEventHandler("onClientResourceStart", root, onClientResourceStart) function sendSettings(freeCam, camPosX, camPosY, camPosZ, camLookX, camLookY, camLookZ, pedPosX, pedPosY, pedPosZ, pedRot, interior, allSkins, skinID, skins) setElementData(localPlayer, "class_freeCam", freeCam) setElementData(localPlayer, "class_camPosX", camPosX) setElementData(localPlayer, "class_camPosY", camPosY) setElementData(localPlayer, "class_camPosZ", camPosZ) setElementData(localPlayer, "class_camLookX", camLookX) setElementData(localPlayer, "class_camLookY", camLookY) setElementData(localPlayer, "class_camLookZ", camLookZ) setElementData(localPlayer, "class_pedPosX", pedPosX) setElementData(localPlayer, "class_pedPosY", pedPosY) setElementData(localPlayer, "class_pedPosZ", pedPosZ) setElementData(localPlayer, "class_pedRot", pedRot) setElementData(localPlayer, "class_interior", interior) setElementData(localPlayer, "class_allSkins", allSkins) setElementData(localPlayer, "class_skinID", skinID) setElementData(localPlayer, "class_skins", skins) skinsTable = skins setElementModel(localPlayer, skinsTable[1]) setElementData(localPlayer, "skinTableID", 1) setupPlayerForClassSelection() end addEvent("sendSettings", true) addEventHandler("sendSettings", root, sendSettings, freeCam, camPosX, camPosY, camPosZ, camLookX, camLookY, camLookZ, pedPosX, pedPosY, pedPosZ, pedRot, interior, allSkins, skinID, skins) function renderSkinID() dxDrawText(getElementModel(localPlayer), x2, y2, x3, y3, tocolor(255, 255, 255, 255), 2.0, "bankgothic", "center", "center", false, false, false) end function bindSetupPlayerForClassSelection() if isPedInVehicle(localPlayer) then outputChatBox("You can't return to class selection because you are in vehicle!", 255, 102, 102) return false end if getElementData(localPlayer, "alive") == false then outputChatBox("You can't return to class selection because you are in vehicle!", 255, 102, 102) return false end unbindKey("F4") outputChatBox("Returning to class selection in 5 seconds..", 0, 204, 51) setTimer(timer_SetupPlayerForClassSelection, 5000, 1) end function timer_SetupPlayerForClassSelection() if isPedInVehicle(localPlayer) then outputChatBox("You can't return to class selection because you are in vehicle!", 255, 102, 102) bindKey("F4", "down", bindSetupPlayerForClassSelection) return false end if getElementData(localPlayer, "alive") == false then bindKey("F4", "down", bindSetupPlayerForClassSelection) return false end setupPlayerForClassSelection() end function setupPlayerForClassSelection() if getElementData(localPlayer, "class_skinID") == 1 then addEventHandler("onClientRender", root, renderSkinID) end toggleAllControls(false, true, false) setPedAnimation(localPlayer) setElementData(localPlayer, "classSelection", true) showPlayerHudComponent("all", false) currentSkin = getElementModel(localPlayer) currentSkinID = table.find(skinsTable, currentSkin) if currentSkinID == nil then currentSkinID = 1 end setElementModel(localPlayer, skinsTable[currentSkinID]) setElementData(localPlayer, "skinTableID", currentSkinID) setElementInterior(localPlayer, getElementData(localPlayer, "class_interior")) setElementDimension(localPlayer, getElementID(localPlayer)) if getElementData(localPlayer, "class_freeCam") == 0 then setCameraMatrix(getElementData(localPlayer, "class_camPosX"), getElementData(localPlayer, "class_camPosY"), getElementData(localPlayer, "class_camPosZ"), getElementData(localPlayer, "class_camLookX"), getElementData(localPlayer, "class_camLookY"), getElementData(localPlayer, "class_camLookZ")) end setElementPosition(localPlayer, getElementData(localPlayer, "class_pedPosX"), getElementData(localPlayer, "class_pedPosY"), getElementData(localPlayer, "class_pedPosZ")) setPedRotation(localPlayer, getElementData(localPlayer, "class_pedRot")) unbindKey("F4") bindKey("lshift", "down", stopPlayerClassSelection) bindKey("rshift", "down", stopPlayerClassSelection) bindKey("arrow_l", "down", classSelectionChangeSkin, "left") bindKey("arrow_r", "down", classSelectionChangeSkin, "right") bindKey("mouse1", "down", classSelectionChangeSkin, "right") bindKey("mouse2", "down", classSelectionChangeSkin, "left") triggerEvent("onEnterClassSelection", root, currentSkin) triggerServerEvent("setupPlayerForClassSelection", root, currentSkin) end function classSelectionChangeSkin(key, state, direction) local oldSkin = getElementModel(localPlayer) if direction == "right" then tableID = getElementData(localPlayer, "skinTableID") + 1 if tableID == table.getn(skinsTable) + 1 then tableID = 1 end else tableID = getElementData(localPlayer, "skinTableID") - 1 if tableID == 0 then tableID = table.getn(skinsTable) end end setElementData(localPlayer, "skinTableID", tableID) setElementModel(localPlayer, skinsTable[tableID]) playSoundFrontEnd(2) triggerEvent("onClassSelectionSkinChange", root, oldSkin, skinsTable[tableID]) end function stopPlayerClassSelection() if getElementData(localPlayer, "class_skinID") == 1 then removeEventHandler("onClientRender", root, renderSkinID) end setElementData(localPlayer, "classSelection", false) unbindKey("lshift") unbindKey("rshift") unbindKey("arrow_l") unbindKey("arrow_r") unbindKey("mouse1") unbindKey("mouse2") bindKey("F4", "down", bindSetupPlayerForClassSelection) toggleAllControls(true) showPlayerHudComponent("all", true) setElementDimension(localPlayer, 0) local skin = getElementModel(localPlayer) triggerEvent("onLeaveClassSelection", root, skin) triggerServerEvent("stopPlayerClassSelection", root, skin) end function onClientPlayerSpawn() setElementData(localPlayer, "alive", true) end addEventHandler("onClientPlayerSpawn", localPlayer, onClientPlayerSpawn) function onClientPlayerWasted() setElementData(localPlayer, "alive", false) end addEventHandler("onClientPlayerWasted", localPlayer, onClientPlayerWasted) function isPlayerInClassSelection() return getElementData(localPlayer, "classSelection") end function table.find(t, v) for i, l in ipairs(t) do if l == v then return i end end return nil end xml : -- VER: 1.7.1a-EN --> "lopezloo" type="script" name="Class Selection" description="Classic Class Selection" version="1.7.1" /> server.lua resourceName = getResourceName(getThisResource()) spawnSettings = { } function stopPlayerClassSelection(skin) triggerEvent("onLeaveClassSelection", client, skin) if spawnSettings[1] == 0 then spawnPlayer(client, spawnSettings[2], spawnSettings[3], spawnSettings[4], spawnSettings[5], skin, spawnSettings[6], spawnSettings[7]) setCameraTarget(client) end end addEvent("stopPlayerClassSelection", true) addEventHandler("stopPlayerClassSelection", root, stopPlayerClassSelection, skin) function setupPlayerForClassSelection(currentSkin) triggerEvent("onEnterClassSelection", client, currentSkin) end addEvent("setupPlayerForClassSelection", true) addEventHandler("setupPlayerForClassSelection", root, setupPlayerForClassSelection, currentSkin) function getSettings() local freeCam = get(resourceName .. ".freeCam") local camPosX = get(resourceName .. ".cameraPosX") local camPosY = get(resourceName .. ".cameraPosY") local camPosZ = get(resourceName .. ".cameraPosZ") local camLookX = get(resourceName .. ".cameraLookX") local camLookY = get(resourceName .. ".cameraLookY") local camLookZ = get(resourceName .. ".cameraLookZ") local pedPosX = get(resourceName .. ".pedPosX") local pedPosY = get(resourceName .. ".pedPosY") local pedPosZ = get(resourceName .. ".pedPosZ") local pedRot = get(resourceName .. ".pedRot") local interior = get(resourceName .. ".interior") table.insert(spawnSettings, get(resourceName .. ".customSpawn")) table.insert(spawnSettings, get(resourceName .. ".spawnPosX")) table.insert(spawnSettings, get(resourceName .. ".spawnPosY")) table.insert(spawnSettings, get(resourceName .. ".spawnPosZ")) table.insert(spawnSettings, get(resourceName .. ".spawnRot")) table.insert(spawnSettings, get(resourceName .. ".spawnInterior")) table.insert(spawnSettings, get(resourceName .. ".spawnDimension")) local skinID = get(resourceName .. ".skinID") local allSkins = get(resourceName .. ".allSkins") skinsEx = { } if allSkins == 1 then skinsEx = getValidPedModels() else skins = get(resourceName .. ".skins") for i, skin in pairs(skins) do if isValidSkin(skin) then table.insert(skinsEx, skin) end end end triggerClientEvent("sendSettings", client, freeCam, camPosX, camPosY, camPosZ, camLookX, camLookY, camLookZ, pedPosX, pedPosY, pedPosZ, pedRot, interior, allSkins, skinID, skinsEx) end addEvent("getSettings", true) addEventHandler("getSettings", root, getSettings) function isValidSkin(specifiedSkin) -- function from Multi Theft Auto Wiki ^^ if (specifiedSkin) then local allSkins = getValidPedModels() local result = false for key, skin in ipairs(allSkins) do if skin == tonumber(specifiedSkin) then result = skin break end end if (result) then return true else return false end else return false end end
  13. RedDead

    teleport

    any tutorial for how to make a simple teleport (with mark not command /command) ?
  14. RedDead

    Admin Panel Problem

    thanks but , do you know how to make a simple teleport? and i want the teleport mark inside police officer and if you go to the mark windows will pop up to ask you . (do you want to be a police man) the answear will be Yes , and , No .. if no he will not teleport and if yes he will teleport and other thing :: i cant enter police officer or restaurants and all what can i enter with original gta sa i cant enter it in mta .
  15. RedDead

    Admin Panel Problem

    still having problem ,, when i post a command in Console i saw DENIED : Denied 'console' access to command 'start' ACL : access denied for start
  16. RedDead

    Admin Panel Problem

    when i launched the server my admin panel dont work i saw : ERROR : admin-panel\server\admin_ip2.lua:20: attempt to perform arithmetic on a boolean value please help
  17. RedDead

    Player selector

    i saw in server , i can use new skin from the player selector
  18. RedDead

    Player selector

    i dont want with id's ,, i have a new 2 skins so i will put it i have .txd,.dff
  19. RedDead

    Player selector

    thanks but i want put my web-url left the selector i can draw you the mod ^^ ____________________ i draw it :
  20. RedDead

    Player selector

    hello , i want mod like player chooser , if any1 join at my server the should choose 1 of 2 skins i will put them in the mod with the pictures please anyone can help me to get this mod
  21. data/euros.txd is that from my gta sa folder or mta server folder
  22. hello mta fans , i would like to know if i can converter my own mod (txd,dff) to mta files so i can use it in my server.
×
×
  • Create New...