Jump to content

Alen141

Members
  • Posts

    105
  • Joined

  • Last visited

Everything posted by Alen141

  1. txd = engineLoadTXD("models/280.txd") engineImportTXD(txd, 280) dff = engineLoadDFF("models/280.dff", 0) engineReplaceModel(dff, 280) i tried this
  2. you put ")" into same line as end EDIT : addEvent ("text", true ) addEventHandler( "text", getRootElement(), function () local accName = getAccountName ( getPlayerAccount ( source ) ) -- get his account name if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then else cancelEvent () end end )
  3. You forgot to close the event handler I see addEvent ("text", true ) addEventHandler( "text", getRootElement(), function () local accName = getAccountName ( getPlayerAccount ( source ) ) -- get his account name if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then else cancelEvent () end end )
  4. Why don't you make it on click it makes it easier
  5. addEvent ("text", true ) addEventHandler( "text", getRootElement(), function () local accName = getAccountName ( getPlayerAccount ( source ) ) -- get his account name if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then else cancelEvent () end end
  6. Hey guys i need help with skin replacement.I used this for replacing it http://mta.dzek.eu/peds/ but the problem is i want to change skin TXD and DFF.SO can anyone help me?
  7. Hey guys i need help.My server works fine,everyone can join but when I start console it loads and say this "Querying game-monitor.com master server... failed! (302: Moved temporarily)"
  8. where did you define "locations"?
  9. you can make acl groups: bikerrank1,bikerrank2,bikerrank3 and lock for ranks
  10. EXAMPLE: you create team Bikers and lock "cars" that can be driven only by Police. Only Police can drive "cars",Biker team will get outputmessage or gui window
  11. i can make it locked for teams,you can make acl rank1,rank2,rank3 and lock for ranks
  12. rootElement = getRootElement() local lvairportblip = createBlip(1674, 1447.5, 11, 5) local theVehicle = getPedOccupiedVehicle (hitPlayer) planemarkerlv = createMarker(1674, 1447.5, 9.5, "cylinder", 5, 255, 0, 0, 160) gate1LVmarker = createMarker(1576.5, 1495.30, 13, "cylinder", 18, 0, 155, 255, 30) gate2LVmarker = createMarker(1570.8, 1532.87, 13, "cylinder", 18, 0, 155, 255, 30) gate3LVmarker = createMarker(1602.5, 1546.54, 13, "cylinder", 18, 0, 155, 255, 30) gate4LVmarker = createMarker(1576.7, 1401.46, 13, "cylinder", 18, 0, 155, 255, 30) gate5LVmarker = createMarker(1570.8, 1363.94, 13, "cylinder", 18, 0, 155, 255, 30) gate6LVmarker = createMarker(1601.4, 1350.91, 13, "cylinder", 18, 0, 155, 255, 30) gate1SFmarker = createMarker(-1350.1, -235.77, 16, "cylinder", 18, 0, 155, 255, 30) gate2SFmarker = createMarker(-1298.6, -366.46, 16, "cylinder", 18, 0, 155, 255, 30) gate3SFmarker = createMarker(-1462.2, -157.35, 16, "cylinder", 18, 0, 155, 255, 30) gate4SFmarker = createMarker(-1362.5, -146.57, 16, "cylinder", 18, 0, 155, 255, 30) gate5SFmarker = createMarker(-1257.2, -252.85, 16, "cylinder", 18, 0, 155, 255, 30) gate1LSmarker = createMarker(1569.78, -2433.4, 15, "cylinder", 18, 0, 155, 255, 30) gate2LSmarker = createMarker(1654.20, -2440, 15, "cylinder", 18, 0, 155, 255, 30) gate3LSmarker = createMarker(1884.6, -2388.15, 15, "cylinder", 18, 0, 155, 255, 30) addEvent ("airLVviewGUI", true) function markerHit (hitPlayer, matchingDimension) if (source == planemarkerlv) then triggerClientEvent ("airLVviewGUI", hitPlayer) outputChatBox ("Welcome to Las Venturas Airport!", hitPlayer, 255, 255, 255) end end addEventHandler ("onMarkerHit", getRootElement(), markerHit) addEvent ("gateLVviewGUI", true) function markerHitLVgate (hitPlayer, matchingDimension) local theVehicle = getPedOccupiedVehicle (hitPlayer) local id = getElementModel(theVehicle) if ((source == gate1LVmarker) or (source == gate2LVmarker) or (source == gate3LVmarker) or (source == gate4LVmarker) or (source == gate5LVmarker) or (source == gate6LVmarker)) and (id == 511 or id == 577 or id == 592) then if ((getAccountData (getPlayerAccount (hitPlayer), "flightDestination")) == "LV") then givePlayerMoney (hitPlayer, 3000) outputChatBox ("Welcome to Las Venturas Int. wait while you're unloading", hitPlayer, 255, 255, 0) end triggerClientEvent ("gateLVviewGUI", hitPlayer) setTimer(function() outputChatBox ("You are loaded and ready for departure", hitPlayer, 255, 255, 0) end, 5000,1) elseif ((source == gate1LVmarker) or (source == gate2LVmarker) or (source == gate3LVmarker) or (source == gate4LVmarker) or (source == gate5LVmarker) or (source == gate6LVmarker)) then outputChatBox ("You can't pick up passegers without a plane", hitPlayer, 255, 0, 0) end end addEventHandler ("onMarkerHit", getRootElement(), markerHitLVgate) addEvent ("gateSFviewGUI", true) function markerHitSFgate (hitPlayer, matchingDimension) local theVehicle = getPedOccupiedVehicle (hitPlayer) local id = getElementModel(theVehicle) if ((source == gate1SFmarker) or (source == gate2SFmarker) or (source == gate3SFmarker) or (source == gate4SFmarker) or (source == gate5SFmarker)) and (id == 511 or id == 577 or id == 592) then if ((getAccountData (getPlayerAccount (hitPlayer), "flightDestination")) == "SF") then givePlayerMoney (hitPlayer, 3000) outputChatBox ("Welcome to San Fierro Int. wait while you're unloading", hitPlayer, 255, 255, 0) end triggerClientEvent ("gateSFviewGUI", hitPlayer) setTimer(function() outputChatBox ("You are loaded and ready for departure", hitPlayer, 255, 255, 0) end, 5000,1) elseif ((source == gate1SFmarker) or (source == gate2SFmarker) or (source == gate3SFmarker)) then outputChatBox ("You can't pick up passegers without a plane", hitPlayer, 255, 0, 0) end end addEventHandler ("onMarkerHit", getRootElement(), markerHitSFgate) addEvent ("gateLSviewGUI", true) function markerHitLSgate (hitPlayer, matchingDimension) local theVehicle = getPedOccupiedVehicle (hitPlayer) local id = getElementModel(theVehicle) if ((source == gate1LSmarker) or (source == gate2LSmarker) or (source == gate3LSmarker)) and (id == 511 or id == 577 or id == 592) then if ((getAccountData (getPlayerAccount (hitPlayer), "flightDestination")) == "LS") then outputChatBox ("Welcome to Los Santos Int. wait while you're unloading", hitPlayer, 255, 255, 0) givePlayerMoney(hitPlayer, 3000) end triggerClientEvent ("gateLSviewGUI", hitPlayer) setTimer(function() outputChatBox ("You are loaded and ready for departure", hitPlayer, 0, 255, 0) end, 5000,1) elseif ((source == gate1LSmarker) or (source == gate2LSmarker) or (source == gate3LSmarker)) then outputChatBox ("You can't pick up passegers without a plane", hitPlayer, 255, 0, 0) end end addEventHandler ("onMarkerHit", getRootElement(), markerHitLSgate) addEvent ("planeSpawn", true) addEventHandler ("planeSpawn", getRootElement(), function (aircraft) Plane = createVehicle(tonumber(aircraft), 1477.4, 1270.9, 11) setCameraMatrix(1502, 1292, 11, 1475, 1288, 13.8, 90, 90) warpPedIntoVehicle ( source, Plane ) outputChatBox ("Pickup passengers at the terminal.", source, 0, 255, 0) end) addEvent ("setFlightPlan", true) addEventHandler ("setFlightPlan", getRootElement(), function (departure, destination) outputChatBox (departure.." Airport: You have clearance to taxi to runway 69", source, 255, 255, 255) setTimer(function() outputChatBox (departure.." Airport: You have clearance for take-off", source, 0, 255, 0) outputChatBox (departure.." Airport: Have a nice flight to "..destination, source, 0, 255, 0) end, 12000,1) setAccountData (getPlayerAccount (source), "flightDeparture", (tostring(departure))) setAccountData (getPlayerAccount (source), "flightDestination", (tostring(destination))) setElementData(source, "flightDeparture", departure) setElementData(source, "flightDestination", destination) end) addEvent ("destroyPlane", true) function destroyplane() local theVehicle = getPedOccupiedVehicle (source) local id = getElementModel(theVehicle) if (id == 511 or id == 577 or id == 592) then destroyElement(Plane) else end end addEvent ("visiblePlaneMarkers", true) function visiblePlaneMarkers(thePlayer) local theVehicle = getPedOccupiedVehicle (thePlayer) local id = getElementModel(theVehicle) if (id == 511 or id == 577 or id == 592) then else end end addEventHandler("onVehicleEnter", rootElement, visiblePlaneMarkers) addEventHandler("onVehicleExit", rootElement, destroyplane) addEventHandler("onPlayerQuit", rootElement, destroyplane)
  13. That's relly nice raahim keep up good work
  14. I don't know any scripter that do it for free...So i'm afraid you will have to do it on yourself.
  15. not working DEBUG : expected to close at line 3 near function
  16. So i'm working on my private vehicle system,but it doesn't work why? here is lua : local vehicle = createVehicle( 602, 2279.1000976563, -1671.1999511719, 15.10000038147, 0, 0, 272 ) addEventHandler("onVehicleStartEnter", vehicle, function(player, seat, jacked) if ( source == vehicle ) then local user = getAccountName ( Alen ) if ( user == "Alen" ) then cancelEvent() outputChatBox("This vehicle is private.", player, 255, 0, 0, false) else outputChatBox("Welcome to your vehicle,Sir!", player, 0, 255, 0, false) end end end )
  17. Alen141

    [HELP3x]Chat

    I meant that things like "Player" have joined server, **Respawning Vehicles!**,"Player" has been banned would say on top of screen like on SAES|RPG
  18. Alen141

    [HELP3x]Chat

    Hey for the third time me, i just want to ask what functions do i need to use if I want to make top chat?
  19. i edited code a bit and it worked so thanks,did this community ever concider about giving you a 100 000$ i mean you relly deserve it cuse if someone helped this community it would be you!
  20. use this ban example and try to fix it function announceBan( theBan ) if getElementType( source ) then --Check if a player banned the IP/Serial outputChatBox( getPlayerName( source ) .. " banned " .. ( getBanSerial(theBan) or getBanIP(theBan) ) ) --Output to the chatbox saying the player has banned the IP/Serial end end addEventHandler( "onBan", root, announceBan ) --Adds the event handler for 'onBan' and must be bound to root
  21. you don't have commandhandler there EDIT: or atleast trigger
×
×
  • Create New...