Jump to content

PaiN^

Members
  • Posts

    2,258
  • Joined

  • Last visited

Everything posted by PaiN^

  1. PaiN^

    ماركر

    local marker = createMarker( ... ) -- سوي ماركر local setData = setTimer( function( ) -- سوي تايمر local data = getElementData( marker, "usable" ) -- للماركر usable جيب قيمة الداتا setElementData( marker, "usable", not data ) -- true/false إلى true/false غيرها من end, 300000, 0 ) -- خلي التايمر لانهائي addEventHandler( "onMarkerHit", marker, -- ضيف حدث يوم أحد يخش الماركر function( element ) if not getElementData( marker, "usable" ) then -- ؟ false تحققق من الداتا هل تساوي return -- يلغي الوظيفة false إذا كانت الداتا end --- false هنا كودك لو الداتا ما كانت end )
  2. InterpolateBetween + DX مسوينه بـ SAUR إلا مداك ياكنق, النص المتحرك في لوحة سيرفر
  3. أكثر من نص المودات المهمة فيها حسابات متعلقة بالرياضيات والله يا ليتني ركزت, كن فجرت الدنيا بموداتي ذذ
  4. الستنج تضفيه في الميتا > name="" value="" />> والأكواد : -- Server : -- functions : get set triggerClientEvent -- events : "onSettingChange" -- Client : -- functions : addEvent addEventHandler dxDrawText setTimer killTimer -- مني متأكد ذذ -- events : "onClientRender"
  5. Well since it's allready asked, How can i make that moving script or whatever , Like in the SAUR login panel .
  6. You wouldn't open this topic if you searched the community ! community.multitheftauto.com
  7. Wow, That's really nice . Would you release it when you're done ?
  8. callRemote أعطي الصلاحية للفنكشن name="function.callRemote" access="true" >>
  9. PaiN^

    ElementData

    You're welcome
  10. Try this one : -- Server Side Script function addToGroup( group ) group = aclGetGroup( group ) if group == false or group == nil then error( "The value of the 'group' is nil or false !" ) end account = getPlayerAccount( source ) if not isGuestAccount( account ) then local name = getAccountName( account ) local add = aclGroupAddObject( group, "user."..name ) if add then outputChatBox( "The object has been added successfully to the group", root, 0, 255, 0, true ) triggerClientEvent( source, "hideall", source ) else outputChatBox( "This object is already in the group", source, 255, 0, 0, true ) end else outputChatBox( "You have to be registered before", source, 255, 0, 0, true ) end else outputChatBox( "The group doesn't exist in the ACL group", source, 255, 0, 0, true ) end addEvent( "addToGroup", true ) addEventHandler( "addToGroup", root, addToGroup )
  11. Well you have 2 options : - Pay someone expert in fx files to do it for you . - Learn how to do fx files . Otherwise stop posting about this problem .
  12. AlcatRaz لآهنت عالشرح الجميل يا يعطيك ربي ألف عافية ,,
  13. PaiN^

    Help!

    SQLite MySQL
  14. PaiN^

    Marker

    You're welcome P.S. : Read this topic, Well help you a lot i hope viewtopic.php?f=148&t=40809
  15. PaiN^

    Marker

    The wiki examples are very clear, You should read more about Lua script wrighting and learn the basics of it first, That will make it very easy for you to do any script .
  16. PaiN^

    ElementData

    The second parameter in the "onClientMarkerHit" event is "matchingDimnsions" not the marker element . And why are you using "tostring" in "createMarker" while you need int values ? And the "outputChatBox" in line 27, If the "v.vehicle" value isn't a string you'll get errors . Try this : function createpickups( pickups ) for _,v in pairs( pickups ) do if v.type == "nitro" then marker = createMarker( v.posX, v.posY, v.posZ, "checkpoint", 1.5, 255, 0, 0, 255 ) setElementData( marker, "nesinsen", "nitro" ) elseif v.type == "repair" then marker = createMarker( v.posX, v.posY, v.posZ, "checkpoint", 1.5, 0, 255, 255, 255 ) setElementData( marker, "nesinsen", "repair" ) elseif v.type == "vehiclechange" then marker = createMarker( v.posX, v.posY, v.posZ, "checkpoint", 1.5, 255, 255, 0, 255 ) setElementData( marker, "nesinsen", "vehiclechange" ) setElementData( marker, "degistirilecekaraba", v.vehicle ) end pickuplar[marker] = true end end -- function markers( hitPlayer, matchingDimension ) local neci = getElementData( source, "nesinsen" ) if neci == "nitro" then outputChatBox( "nitro" ) elseif neci == "repair" then outputChatBox( "repair" ) elseif neci == "vehiclechange" then local araba = getElementData( source, "degistirilecekaraba" ) outputChatBox( "vehiclechange" ) outputChatBox( araba ) end end addEventHandler( "onClientMarkerHit", getRootElement( ), markers )
  17. math.floor > أصغر عدد صحيح math.ceil > أكبر عدد صحيح
  18. ما اظن كذا ينفع الجداول أو الداتا
  19. createMarker "onMarkerHit" getElementData setElementData
  20. أعتقد الأبعاد الوهمية لها عدد محدود ما أظن يوصل لـ 5725 + No Team متأكد إنك في تيم
  21. إذا بس التسجيل خربان, عطه صلاحيات أدمن
  22. CashText = guiCreateLabel( 35, 69, 200, 33, "Your Money : ", false, StatsWindow ) guiSetFont( CashText, "default-bold-small" ) function refreshStats( ) if guiGetVisible( StatsWindow ) then guiSetText( CashText, "Your Money :"..getPlayerMoney( ).." $" ) end end addEventHandler( "onClientRender", getRootElement( ), refreshStats ) جرب ذا
  23. CashText = guiCreateLabel( 35, 69, 200, 33, "Your Money : ", false, StatsWindow ) guiSetFont( CashText, "default-bold-small" ) function refreshStats( ) if guiGetVisible( StatsWindow ) then guiSetText( CashText, "Your Money : $ "..getPlayerMoney( getLocalPlayer( ) ) ) end end addEventHandler( "onClientRender", getRootElement( ), refreshStats )
  24. I'v fixed some errors, Try : -- start: 2768, 2455, 14 -- 1. checkpoint : 406, 2507, 17 -- 2. checkpoint : -2330, -1614, 484 -- 3. checkpoint : -1890, -2423, 33 -- 4. checkpoint : -1170, -2640, 12 -- 5. checkpoint : -24, -2510, 37 -- 6. checkpoint : -789, 2424, 157 -- 7. checkpoint : -2257, 2296, 5 -- goal : -7478, -329, 24 local gumballTable = { { 406, 2507, 17 }, { -2330, -1614, 484 }, { -1890, -2423, 33 }, { -1170, -2640, 12 }, { -24, -2510, 37 }, { -789, 2424, 157 }, { -2257, 2296, 5 }, { -7478, -329, 24 } } function startrace( thePlayer ) local vehicle = getPedOccupiedVehicle( thePlayer ) if vehicle then local x, y, z = unpack( gumballTable[1] ) setElementPosition( thePlayer, 2768, 2455, 14 ) local piste = createMarker( x, y, z, "checkpoint", 10.0, 255, 0, 0, 255 ) if piste then createBlipAttachedTo( piste ) end end end function miss( src, cmd ) local auto = getPedOccupiedVehicle( src ) if auto then outputChatBox( "Kisa Alkakoon!", src, 255, 0, 0 ) else outputChatBox( "Tarvitset Auton!", src, 255, 0, 0 ) end end addCommandHandler( "gumball", miss ) addCommandHandler( "gumball", startrace )
×
×
  • Create New...