Jump to content

LaCosTa

Members
  • Posts

    191
  • Joined

  • Last visited

Everything posted by LaCosTa

  1. LaCosTa

    SAFEZONE

    Just you have to remove string on the first argument it should be like this setTeamFriendlyFire(team1,false) and so on
  2. i don't know where i see it , are you sure you're the original creator i mean you didn't edited it ?? if so then great work keep it up (y)
  3. But his question is already solved here
  4. i did it like that on the first time it doesn't work cuz i didn't made if Key == F1 then so i tried that way , good thanks for correcting me
  5. so how it should be, I'll be grateful if you fix it for me and bosslorenz
  6. try this team1 = createTeam ( "Team A", 0, 255, 0 ) team2 = createTeam ( "Team B", 200, 0, 100 ) function setCameraOnPlayerJoin(player) player = getRandomPlayer() fadeCamera(player, true, 5) setCameraMatrix(player, 1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234,99.881813049316) bindKey(getRandomPlayer(),"F1","down", function (player) setPlayerTeam(player,team1) spawnPlayer (player, 0, 0, 5, 0, 68, 0, 0) giveWeapon ( player, 31, 200 ) setCameraTarget(player) end ) bindKey(getRandomPlayer(),"F2","down", function (player) setPlayerTeam(player,team2) spawnPlayer (player, 0, 0, 5, 0, 212, 0, 0) giveWeapon ( player, 27, 200 ) setCameraTarget(player) end ) end addEventHandler("onPlayerJoin", getRootElement(), setCameraOnPlayerJoin)
  7. try this local theVehicle = {} local marker = createMarker( 1920.599609375, 1310.099609375,8, "cylinder", 2, 0 ,0, 255, 155) function vehicle(hitElement) if (getElementType(hitElement) == "player") and not isPedInVehicle(hitElement) then if isElement( theVehicle[hitElement] ) then destroyElement( theVehicle[hitElement] ) end theVehicle[hitElement] = createVehicle(470, 1921.599609375, 1298.599609375, 9.3999996185303, 0, 0, 270 ) outputChatBox ( "This is a free vehicle. Spawning another one will destroy this vehicle.", hitElement, 0, 0, 255 ) warpPedIntoVehicle(hitElement, theVehicle[hitElement]) end end addEventHandler("onMarkerHit", marker, vehicle) addEventHandler("onPlayerWasted",root,function() if isElement( theVehicle[source]) then destroyElement(theVehicle[source]) theVehicle[source] = nil end end ) addEventHandler("onPlayerQuit",root,function() if isElement( theVehicle[source]) then destroyElement(theVehicle[source]) theVehicle[source] = nil end end )
  8. LaCosTa

    Spawn menu

    to added more classes on the gridlist simply use this guiGridListAddRow guiGridListSetItemText but you have to make other things not only adding these , just follow the script function
  9. local theVehicle = {} local marker = createMarker( 1920.599609375, 1310.099609375,8, "cylinder", 2, 0 ,0, 255, 155) createBlipAttachedTo(marker,10) function vehicle(hitElement) if (getElementType(hitElement) == "player") and not isPedInVehicle(hitElement) then if isElement( theVehicle[hitElement] ) then destroyElement( theVehicle[hitElement] ) end theVehicle[hitElement] = createVehicle(470, 1921.599609375, 1298.599609375, 9.3999996185303, 0, 0, 270 ) outputChatBox ( "This is a free vehicle. Spawning another one will destroy this vehicle.", hitElement, 0, 0, 255 ) warpPedIntoVehicle(hitElement, theVehicle[hitElement]) end end addEventHandler("onMarkerHit", marker, vehicle)
  10. local theVehicle = {} local marker = createMarker( 1920.599609375, 1310.099609375,8, "cylinder", 2, 0 ,0, 255, 155) function vehicle(hitElement) if (getElementType(hitElement) == "player") and not isPedInVehicle(hitElement) then if isElement( theVehicle[hitElement] ) then destroyElement( theVehicle[hitElement] ) end theVehicle[hitElement] = createVehicle(470, 1921.599609375, 1298.599609375, 9.3999996185303, 0, 0, 270 ) outputChatBox ( "This is a free vehicle. Spawning another one will destroy this vehicle.", hitElement, 0, 0, 255 ) warpPedIntoVehicle(hitElement, theVehicle[hitElement]) end end addEventHandler("onMarkerHit", marker, vehicle)
  11. LaCosTa

    help me !!!!

    if you want us to help you just try to prove your idea
  12. if you mean to make a distance for the blip try using this function read on wiki for more informations setBlipVisibleDistance ( blip theBlip, float theDistance )
  13. LaCosTa

    MTA Help Tools

    great job , i didn't tried it but it seems amazing , very good .
  14. Really good job , keep it up man :]full support
  15. it's not my version , and you have to start the guieditor resource from the admin panel or type on F8 start guieditor after that type /guied and start making your gui
  16. as i said make your gui then click on the right button of the mouse then press output , you'll get this panel showen on your screen just press copy all or output to file follow my cursor to see where you click then paste it where ever you want .
  17. addEventHandler("onClientGUIClick",GUIEditor.button[2],function() if ( source == GUIEditor.button[2]) then guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end )
  18. you mean like this : client.lua local marker = createMarker( 203.68948364258, 1913.0572509766, 17.640625, "Cylinder", 2, 6, 240, 226, 255) GUIEditor = { button = {}, window = {}, memo = {} } GUIEditor.window[1] = guiCreateWindow(428, 169, 485, 449, "Survivors", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(148, 307, 194, 57, "Choose", false, GUIEditor.window[1]) GUIEditor.memo[1] = guiCreateMemo(9, 24, 466, 247, "Survivors.... Allied With Military , if you choose this side , you will be spawned to the Military & Survivors Base. and there is no going back. and as a survivor , you will need to survive and explore san andreas while killing zombies and surviving for better experience.", false, GUIEditor.window[1]) guiMemoSetReadOnly(GUIEditor.memo[1], true) GUIEditor.button[2] = guiCreateButton(150, 379, 192, 52, "Cancel", false, GUIEditor.window[1]) addEventHandler("onClientMarkerHit", marker, function(player) if (player == localPlayer) then guiSetVisible(GUIEditor.window[1], true) showCursor(true) end end) addEventHandler("onClientGUIClick",GUIEditor.button[1],function() if ( source == GUIEditor.button[1]) then triggerServerEvent("setSurvivor",getLocalPlayer(),getLocalPlayer()) end end ) server.lua function createSurvivorTeam () SurvivorTeam = createTeam ("Survivors", 255, 200, 0) end addEventHandler ("onResourceStart", resourceRoot, createSurvivorTeam) function joinSurvivor() setPlayerTeam(source,SurvivorTeam) setPlayerNametagColor ( source, 255, 200, 0 ) setElementModel(source,127) giveWeapon ( source, 31, 200 ) outputChatBox("You have chosen to be a Survivor!",source,255,200,0) end addEvent("setSurvivor", true) addEventHandler("setSurvivor",root,joinSurvivor)
  19. why you have to save the gui? , just copy your gui code and paste it on the program you're working on by clicking right mouse and output , also try to download the last version
  20. local marker = createMarker( 203.68948364258, 1913.0572509766, 17.640625, "Cylinder", 2, 6, 240, 226, 255) GUIEditor = { button = {}, window = {}, memo = {} } GUIEditor.window[1] = guiCreateWindow(428, 169, 485, 449, "Survivors", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(148, 307, 194, 57, "Choose", false, GUIEditor.window[1]) GUIEditor.memo[1] = guiCreateMemo(9, 24, 466, 247, "Survivors.... Allied With Military , if you choose this side , you will be spawned to the Military & Survivors Base. and there is no going back. and as a survivor , you will need to survive and explore san andreas while killing zombies and surviving for better experience.", false, GUIEditor.window[1]) guiMemoSetReadOnly(GUIEditor.memo[1], true) addEventHandler("onClientMarkerHit", marker, function(hitElement) if ((getElementType(hitElement) == "player") and not isPedInVehicle(hitElement)) then if not guiGetVisible(GUIEditor.window[1]) then guiSetVisible(GUIEditor.window[1],true) showCursor(true) end end end )
  21. LaCosTa

    Basic Problem

    did you tried to refresh the panel ??
×
×
  • Create New...