Jump to content

iPrestege

Members
  • Posts

    10,056
  • Joined

  • Days Won

    27

Everything posted by iPrestege

  1. You can find it yourself in the community https://community.multitheftauto.com/index.php?p=resources&s=details&id=6621 also nice bumping .
  2. A. a lot of scripters are good like dan ,arc,50p,castillo,kenix,50p,TAPL,Al3grab,MR.S3D,3NAD,Simple01 with pairs . Q. Ask your self
  3. ام تي اي ماراح يسوون لا ذي ولا ذي
  4. @#_iMr,[E]coo شف الخاص بمنتدى مجتمع العرب
  5. استضافه مجتمع العرب ترحب بكم .. وتقدم لكم 5 سيرفرات هديه حصريا فقط في مجتمع ام تي اي العرب .. الشروط بسيطه وسهله جدا . 1- لازم يكون عندك فوق 10 مشاركات 2- يكون عندك خلفيه مسبقا للسيرفر وطريقه تحكمه 3- الرد في موضوع مجتمع العرب - ارخص استضافه عربيه طيب وفي شي ثاني هديه نعطيك سيرفر ثاني مع سيرفرك الاول اذا جبت 5 اعضاء يسجلون بالموقع . وبس شاكرين لكم حسن استماعكم لمزيد من المعلومات : http://www.mtaarabs.com/vb/showthread.php?p=9402#post9402 شرح التسجيل وشروحات المنتدى كافة http://www.mtaarabs.com http://www.mtaarabs.com/vb/showthread.php?t=1263
  6. https://wiki.multitheftauto.com/wiki/DxDrawBorderedRectangle
  7. اربطها بسريال الاعب وخلاص والعب عالمضمون
  8. والله ودنا بهالشيء لكن للاسف رافضين الام تي اي تيم يقولون بيسبب ضرر كبير للاعبين وماراح يرقونه
  9. -- Server addEventHandler ( 'onPlayerLogin',root, function ( _,aPlayerAccount ) if getAccountData ( aPlayerAccount,'FirstLogin' ) then return end; givePlayerMoney ( source,5000 ); outputChatBox ( 'Welcome to your new world! Enjoy',source,255,255,0 ); setAccountData ( aPlayerAccount,'FirstLogin',true ); end end );
  10. انا عندي مليارات اليوم اوريكم
  11. @Master_MTA جرب هذا وعدل اسم داتا القتل او النقاط باول شيء : aKillsData = 'داتا النقاط' function aUpdateKiller ( ) aTopKiller = { }; for _,v in ipairs( getElementsByType ( 'player') ) do if getElementData ( v,aKillsData ) then table.insert ( aTopKiller,{ ['aName'] = getPlayerName ( v ),['aScore'] = getElementData ( v,aKillsData ) } ); end; end; table.sort ( aTopKiller, function ( a,b ) return a.aScore > b.aScore end ); end; aUpdateKiller ( ); addEventHandler ( 'onClientElementDataChange',root, function ( aD ) if aD == aKillsData then aUpdateKiller ( ); end end ); local aX,aY = guiGetScreenSize ( ) addEventHandler ( 'onClientRender',root, function ( ) if #aTopKiller > 0 then dxDrawText ( 'Top Player is : '..aTopKiller[1].aName..' and His score is : '..aTopKiller [1].aScore..'', 44, aY - 43, aX, aY, tocolor ( 255, 255, 255, 255 ), 1 ) end end )
  12. Yes use or aMyWeapon == weaponID and about the message just change hitPlayer with source because it's the player in the event.
  13. You're welcome not a problem just i thought your colshape variable is 'zone1' because it's in the event anyways glad to hear that enjoy.
  14. addEventHandler ( 'onPlayerWeaponSwitch',root, function ( _,aMyWeapon ) if isElementWithinColShape( source,zone1 ) and aMyWeapon == 38 then toggleControl( source,'fire',false ); else toggleControl( source,'fire',true ); end end ); remove the antiminigun function and use this ^^ @S.W.A.T
  15. You're welcome enjoy !
  16. You can simply use isElementWithinColShape with onPlayerWeaponSwitch to toggleControl. @S.W.A.T
  17. local aNotToDisable = { [0]=true;[1]=true;[2]=true;[3]=true;[4]=true;[5]=true; [6]=true;[7]=true;[8]=true;[9]=true;[10]=true;[11]=true;[12]=true;[14]=true; [15]=true;[44]=true;[45]=true;[46]=true;[40]=true }; aDisableLastShoot = function ( ) if aNotToDisable[getPedWeapon(source)] then return false end; if getPedTotalAmmo ( source ) == 1 then toggleControl( 'fire',false ); outputChatBox ('You can not shoot now get more ammo!'); else toggleControl( 'fire',true ); end end addEventHandler ( 'onClientPlayerWeaponSwitch',localPlayer,aDisableLastShoot ); addEventHandler ( 'onClientPlayerWeaponFire',localPlayer,aDisableLastShoot ); You can try with this . @TheMOG
×
×
  • Create New...