Jump to content

iPrestege

Members
  • Posts

    10,056
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by iPrestege

  1. خلآص مشكلتك يا ابن الناس جب لـك كيببورد جديد
  2. maybe the same keyboard do not work properly! / يمكن الكيبورد نفسسة متعطل !
  3. كمل هنا أفضل ~ دعوآتكك لي بالتوفيق =D
  4. طبعاَ مسافة للتنظيم ~ العفو ~ اي استفسار ؟ .
  5. لآ مع الكود الثاني نفس الملف "سيرفر" ذذ .
  6. الكود الثالث سيرفر عشان الترايقر حق الزر الثاني .
  7. function OnClick() -- بداية الوظيفة if ( source == Button[1] ) then -- اذا كان الزر = Button triggerServerEvent("Car",localPlayer) -- نسوي ترايقر عشان الفنكشن حق انشاء السيارهـَ عشان تظهر للكلَ else if ( source == Button[2] ) then -- اذا كان الزر = Button triggerServerEvent("Car2",localPlayer) -- نسوي ترايقر عشان الفنكشن حق انشاء السيارهـَ عشان تظهر للكلَ end end end -- نغلق الوظيفة addEventHandler( "onClientGUIClick", root, OnClick ) -- الايفنت عند الضغط على زر addEvent( "Car", true) -- الايفنت من الترايقر addEventHandler( "Car", root, -- الايفنت من الترايقر function() -- بداية الوظيفة x,y,z = getElementPosition ( source ) -- احظار احداثيات الاعب Vehicle = createVehicle ( 562, x, y, z + 2) -- انشاء مركبة 562 = اي دي المركبة َ end -- ننهي الوظيفة ) -- نغلق القوس ~ addEvent( "Ca2r", true) -- الايفنت من الترايقر addEventHandler( "Car2", root, -- الايفنت من الترايقر function() -- بداية الوظيفة x,y,z = getElementPosition ( source ) -- احظار احداثيات الاعب Vehicle = createVehicle ( 561, x, y, z + 2) -- انشاء مركبة 562 = اي دي المركبة َ end -- ننهي الوظيفة ) -- نغلق القوس ~
  8. عندك قوس زايد في سطر 9 الكلينت Last edited by Mr.Pres[T]ege on Sat Jan 05, 2013 5:21 am, edited 1 time in total.
  9. -- Client Side Try This / function OnClick() -- بداية الوظيفة if ( source == Button[1] ) then -- اذا كان الزر = Button triggerServerEvent("Car",localPlayer) -- نسوي ترايقر عشان الفنكشن حق انشاء السيارهـَ عشان تظهر للكلَ end end -- نغلق الوظيفة addEventHandler( "onClientGUIClick", root, OnClick ) -- الايفنت عند الضغط على زر addEvent( "Car", true) -- الايفنت من الترايقر addEventHandler( "Car", root, -- الايفنت من الترايقر function() -- بداية الوظيفة x,y,z = getElementPosition ( source ) -- احظار احداثيات الاعب Vehicle = createVehicle ( 562, x, y, z + 2) -- انشاء مركبة 562 = اي دي المركبة َ end -- ننهي الوظيفة ) -- نغلق القوس ~
  10. وش تبي تسويها اصلاَ ؟
  11. I know i can use Dx functions, but i'm not sure how to make it to move up and down when player increases/decreases his health You can use dx when player helth from 1 to 100 so you have to draw 100 dx line if player helth 100 then set it full or if player helth 50 set it half ~
  12. iPrestege

    Objects samp

    Are you sure about Object id ?
  13. iPrestege

    Help

    @ Manve I'm sorry I did not see the edited this it,s my fault am sorry .. .. Thanks For Trying To Help =D @ TAPL i Read the wiki quickly .. Thanks @ MR.S3D Thanks it works correctly ... Thanks =D
  14. iPrestege

    Help

    What did you do ? nothing still not working -_-"
  15. iPrestege

    Help

    Hello how are you .. hmm .. i have a problem with this wtf script ! whats the wrong -_-" -- Server Side i triger it from client side .. addEvent("Car", true) addEventHandler("Car", root, function() local mapName = getMapName(source) if mapName ~= "Arena-1" then local PlayerMoney = getPlayerMoney(source) if PlayerMoney >= 50000 then takePlayerMoney(source, 50000) x, y, z = getElementPosition(source), source, 50000 Vehicle = createVehicle(id, x, y, z) warpPedIntoVehicle(source, Vehicle) setVehicleLocked(Vehicle, true) setTimer(function() destroyElement(source, Vehicle) end, 300000, 1, true) outputChatBox("#FF0000 .."getPlayerName".. (source) Has Bought A Rhino !", root, 255, 255, 0, true) else outputChatBox("You Dont Have Money to Buy a Rhino", source, 255, 0, 0, true) end else outputChatBox("Round is not started!", source, 255, 0, 0, true) end end )
  16. You cant enable Celo Mods in mta / mta sa using lua programing lang .
  17. {وَذَكِّرْ فَإِنَّ الذِّكْرَى تَنفَعُ الْمُؤْمِنِينَ }
×
×
  • Create New...