Jump to content

al-Kobra

Members
  • Posts

    740
  • Joined

  • Last visited

Everything posted by al-Kobra

  1. بدل كود فتح اللوحة بهذا : Maarker = createMarker ( .... ) --حط احداثيات الماركر addEventHandler ( "onClientMarkerHit", Maarker, function ( hitPlayer ) if ( getElementData ( source , "gang" ) == "اسم القروب" ) then if getElementType ( hitPlayer ) == "player" then guiSetVisible ( اسم اللوحة, true ) showCursor ( true ) end end ) addEventHandler ( "onClientMarkerHit", Maarker, function ( leftPlayer ) if getElementType ( liftPlayer ) == "player" then guiSetVisible ( اسم اللوحة, false ) showCursor ( false ) end end )
  2. Pos = { x[1] = {1230.54}, x[2] = {530.54}, y[1] = {-1621.54}, y[2] = {-1421.54}, z[1] = {13.54}, z[2] = {13.54}, } addEventHandler ( "onClientGUIClick", اسم البوتون, function ( ) if (source == اسم البوتون) then setElementPosition ( source, Pos.x[1], Pos.y[1], Pos.z[1] ) elseif (source == اسم البوتون) then setElementPosition ( source, Pos.x[2], Pos.y[2], Pos.z[2] ) end end ) اتوقع كذا + اذا في اخطاء عدلوها ,, لأني مسوي الكود بالتلفون =D
  3. Event = 'onClientMarkerHit' --اذا دخل الماركر guiSetVisible --يظهر اللوحة getElementData --هنا عشان يتحقق من اسم القروب واذا ما عرفت قول
  4. تبغي اللوحة قريد لست ؟؟
  5. الاعتقال تبيه من يضرب المجرم يروح السجن ؟؟ لو تبيه يمشي وراه ؟
  6. شكله يوم سرقه ما سرق جدول السيارات اي جدول ي شيخ ؟ , ذا الماركر سورس الأفنت ! . ! المهم وش مشكلة الكود ؟ فكرته جدول Gamer : يمكن من ذا destroyElement( Vehicles[hitElement] ) جرب امسحه من الكود
  7. شكله يوم سرقه ما سرق جدول السيارات
  8. بس بدلت onPlayerWasted الى onPlayerDamage
  9. جرب كودي الحين لأن عدلته
  10. هو يبغي اذا دخل ماركر
  11. اذا كان قصدك مثل الا انا قلته ,, استخدم ذا : marker = createMarker (.....) local id = ايدي السلاح local ammo = الطلقات addEventHandler,("onPlayerMarkerHit", getRootElement(),marker, function () giveWeapon (source,id,ammo) outputChatBox ( "تم دخول لاعب "..(getPlayerName(source).." واعطائه سلاح", source, 255, 255, 255, true ) end end ) اتوقع كذا
  12. عاافس ام ام الكود وش تبغي تسوي بالضبط ؟؟ تبغي اذا واحد دخل الماركر يعطيه سلاح ؟؟
  13. createTeam('Kidnapping',255,0,0) local timer = {} local timerS = {} addEventHandler( 'onPlayerDamage',root,function(attacker) if ( attacker ) and ( attacker ~= source ) and ( getElementType(attacker) == 'player' ) then if ( getPlayerTeam(attacker) ) and ( getTeamName(getPlayerTeam(attacker)) == 'Kidnapping' ) then createBlipAttachedTo(attacker,33) outputChatBox('1000 $ لقد حصلت على',attacker,255,255,0,true) givePlayerMoney(attacker,1000) if not timer[source] or not timerS[source] then timer[source] = setTimer(function() spawnPlayer(source, 812.29241943359,-1100.7707519531,25.786060333252, 0,math.random (0,288)) setElementFrozen(source,true) outputChatBox('بخطفك [ '..getPlayerName(attacker).. ' ] قام اللاعب',source,255,255,0,true) end,2000,1,source) timerS[source] = setTimer(function() setElementFrozen(source,false) setElementPosition(source,896.5, -1114.9, 24.2) outputChatBox('انت الآن حر',source) end,300000,1,source) end end end end ) addEvent( 'SetTeam', true ) addEventHandler( 'SetTeam', root,function() setPlayerTeam ( source, getTeamFromName('Kidnapping' )) end ) جربه
  14. create it with gui editor script
  15. https://community.multitheftauto.com/index.php?p=resources&s=details&id=7613 --هذا مود الكتابة الا فوق البيد createPed --انشاء بيد createMarker --تنشئ ماركر وتخليه مختفي Event = 'onClientMarkerHit' guiSetVisible Event = 'onClientGUIClick' triggerServerEvent giveWeapon takePlayerMoney
  16. فراغ وش ؟؟ وش edit ؟؟ زر يعني ؟ Edit = guiCreateEdit Button = guiCreateButton i think : onClientGUIClick --event guiGridListGetSelectedItem guiGetText triggerServerEvent getPlayerFromName
  17. فراغ وش ؟؟ وش edit ؟؟ زر يعني ؟
  18. https://community.multitheftauto.com/ind ... ls&id=8123 "-_-
  19. الاحتلال الا عطيتك اياه غير الا في موضوعك
×
×
  • Create New...