Jump to content

manve1

Retired Staff
  • Posts

    1,283
  • Joined

  • Last visited

Everything posted by manve1

  1. addEventHandler('onClientGUIClick', button, function () --code end )
  2. its : spawnPlayer( posX, posY, posZ ) do it yourself
  3. getPlayerTeam( 'Team1' ) ?? bad example. duh it gets the players team he is on, thats because if he ain't on that team, it won't work
  4. thats because u made it when u login, i just made that it would work on client side too
  5. team1 = createTeam( "Team1", 255, 255, 0 ) function noBigDeal() if getPlayerTeam( 'Team1' ) then spawnPlayer( 0, 0, 0 ) setElementModel( source, 287 ) giveWeapon( source, 31, 200 ) end end ONLY EXAMPLE!
  6. Found error, copy my code again.
  7. you sure that the picture isn't like that in the .png or /gif or whatever format it is file?
  8. client.lua addEventHandler("onClientPlayerLogin", getRootElement(), function() triggerServerEvent( 'spawnOnLogin', localPlayer ) end ) ---Spawning the player to the Spawn Room--- spawnmarker = createMarker ( 1969.9000244141, -1517.8000488281, 970.79998779297 , "cylinder", 2, 9, 30, 213, 255, 9999 ) function MarkerHit ( hitPlayer, matchingDimension ) guiSetVisible(GUIEditor_Window[1], true) outputChatBox ( getPlayerName(hitPlayer) .. " entered a marker" ) end addEventHandler ( "onClientMarkerHit", spawnmarker, MarkerHit ) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} GUIEditor_Window[1] = guiCreateWindow(266,183,477,402,"The Aviator Spawn System by Robbster",false) GUIEditor_Memo[1] = guiCreateMemo(63,37,357,169,'A student pilot is 0 points : These can fly everything except the Andromada, AT-400, military planes and military helicopters (hydra/hunter)\n\nA Private pilot is 150 points : These can fly everything except the Andromada, AT-400, military planes, helicopters (hydra/hunter) and flying with the shamal will be x1.5 the amount of money a student pilot earns\n\nA Commercial pilot is 250 points : These can fly everything except the military planes and helicopters (hydra/hunter)\n\nArmy pilots is 500 points : These can fly everything\nIn an airline, all airplanes of the airline can be used no matter what \"level\" you are',false,GUIEditor_Window[1]) guiSetVisible(GUIEditor_Window[1], false) GUIEditor_Window[2] = guiCreateWindow(147,141,749,548,"The Aviator Spawn Panel by Robbster",false) GUIEditor_Memo[2] = guiCreateMemo(80,56,627,302,'Welcome to to the Aviators Airline Gamemode!t\n\n-----\nINFO\nINFO \nINFO\nINFO\n-------\n\nHere are the ranks\n\nA student pilot is 0 points : These can fly everything except the Andromada, AT-400, military planes and military helicopters (hydra/hunter)\n\nA Private pilot is 150 points : These can fly everything except the Andromada and AT-400, and military planes and helicopters (hydra/hunter) and flying with the shamal will be x1.5 the amount of money a student pilot earns\n\nA Commercial pilot is 250 points : These can fly everything except the military planes and helicopters (hydra/hunter)\n\nArmy pilots is 500 points : These can fly everything\nIn an airline, all airplanes of the airline can be used not matter what \"level\" you are.',false,GUIEditor_Window[2]) GUIEditor_Label[1] = guiCreateLabel(270,398,94,46,"",false,GUIEditor_Window[2]) Server.lua addEvent( 'spawnOnLogin', true ) addEventHandler('spawnOnLogin', getRootElement(), function() spawnPlayer ( source , 1958.7082519531, -1517.5471191406, 973.55889892578, 0, 1, 0, 0) end )
  9. manve1

    [HELP]Spawn

    addEventHandler('onPlayerJoin', getRootElement(), function () spawnPlayer( 1682.6009521484, -2248.4873046875, 13.55 ) setElementModel( source, 78 ) end ) -- server side
  10. manve1

    How

    How could i make like when i click somewhere away from grid list it would change back all of the labels to what they were ( don't work if i click on buttons ) ? E.g. when clicked on the name: when clicked away ( DON'T WORK WHEN PRESSED ON A BUTTON ): please help me. Thank you.
  11. 1. Read other post which people posted for free scriptors 2. Read sticky notes about free scriptors 3. More Detail might help
  12. image = guiCreateStaticImage((600/sx), (800/sy), (319/sx), (400/sy), "img.png", false, rootimg)
  13. At the house system it never happened before, i shall reinstall the whole server, and look if its fixed, i really hope so, else i wont know what makes the fps lower.. debug the script ( /debugscript 3 ) then look for errors, if not, go through The Dynamic sql if you can, and look for errors or stuff thats not needed in there ( e.g. like stuff you removed from script )
  14. manve1

    how can i

    these day's there is, when i started learning, i started making them too, so go on youtube like Samer said, and look in there. Btw you can learn quicker from mta wiki then videos
  15. Nearly 99% of all the scriptors don't make free scripts, unless they want to do it for mta community.
  16. manve1

    Needed help

    so how do i make that it would require all team mates in the marker before output?
  17. manve1

    Needed help

    No Error, No Output
  18. manve1

    Needed help

    My function looks like this now: function markerFinnishingIMPORTANT() if getPlayerTeam( localPlayer, 'Trolls' ) then local markerFinnishing = createMarker( 226, -1812, 5, "cylinder", 10, 125, 125, 0, 100 ); createBlipAttachedTo( markerFinnishing, 23, 3, 255, 255, 255, 255, 0, 9999 ); function getPlayerCountInMarker(theMarker) i = 0 for _, player in ipairs(getElementsByType("player")) do if isElementWithinMarker(player, theMarker) then i = i + 1 end end return i end addEventHandler('onClientMarkerHit', markerFinnishing, function() if getPlayerTeam( localPlayer, 'Trolls' ) then local playersInMarker = getPlayersInMarker(markerFinnishing) local playersInTeam = countPlayersInTeam(getTeamFromName("Trolls")) if (#playersInMarker == playersInTeam) then outputChatBox( '#FF0000INFO: #FFFFFFWait 5 minutes before you will be taken', 255, 255, 255, true ) else outputChatBox( '#FF0000INFO: #FFFFFFYou need to wait for the team mates.', 255, 255, 255, true ) end end end) end end i get no error, but it doesn't output anything when i enter the marker :\
  19. manve1

    Needed help

    TAPL, sorry for not mentioning, but how can i make it on client side?
  20. manve1

    Needed help

    I have a problem, i'm trying to make that you would need to wait till all of your team mates are in the same marker before mission ends, but i just don't get how too make it, at least could you give me example or all of the functions? thank you.
  21. How can you make that it would stream in quicker, because when i join, it doesn't change the label to IP :\ CLIENT: addEventHandler('onClientPlayerJoin', getRootElement(), function() triggerServerEvent("getIP", localPlayer) local ip = getElementData(localPlayer, "IP") guiSetText(labelIP2, ip) end ) SERVER: function getIP() local ip = getPlayerIP(source) setElementData(source, "IP", ip) end addEvent("getIP", true) addEventHandler("getIP", root, getIP)
  22. manve1

    Animations

    i will use this, but thanx, i will have example whenever i create other peds now
  23. manve1

    Animations

    could you give me an example? because never used things might take long time to learn for me
  24. manve1

    Animations

    When i add animation to "ped1" it doesn't show the animation when he is spawned: ped1 = createPed( 87, -285.9, 1206, 73.5 ) setElementDimension( ped1, 1 ) setPedAnimation( ped1, "STRIP", "PLY_CASH")
×
×
  • Create New...