Jump to content

Hussain

Members
  • Posts

    41
  • Joined

  • Last visited

Everything posted by Hussain

  1. Thank you very much, it worked! Can I save the binds so I can restore them anytime I want? Because I spent too much time on this.
  2. https://pastebin.mtasa.com/898534479
  3. When I press the joystick button in settings, nothing gets changed, it remains empty and I have to press Escape. And when I run Xpadder and tries the same thing, it just adds another "w" and when I press the button there, the vehicle doesn't accelerate.
  4. I used to play with a PS3 joystick using Xpadder but now some keys don't work like W,D,S ...etc What should I do?
  5. Thanks very much ! I will test it later .
  6. Like this ? function OnPlayerIsDamaged(attacker, attackerweapon, bodypart, loss) PlayerWantedLevel = getPlayerWantedLevel(source) AttackerTeam = getPlayerTeam(attacker) if(PlayerWantedLevel == 0) then if(AttackerTeam == "Police") then setElementHealth(source, getElementHealth(source) + loss) setElementHealth(attacker, getElementHealth(attacker) - 20) outputChatBox("Don't shot unwanted players or you will lose health!", attacker, 255, 0, 0) end end end addEventHandler("onPlayerDamage", getRootElement(), OnPlayerIsDamaged) addEventHandler (getResourceRootElement(getThisResource(Harm_Hussein), root, function() outputChatBox ( "#FF0000Harm Script Made By : #00FF00Hussein", getRootElement(), 255, 255, 255, true ) end)
  7. Thanks but when i run any script it ouputChatBox my name
  8. How can i add this code fuction copyright outputChatBox ( "#FF0000Harm Script Made By : #00FF00Hussein", getRootElement(), 255, 255, 255, true ) addEventHandler ( "onResourceStart" ) to this function OnPlayerIsDamaged(attacker, attackerweapon, bodypart, loss) -- In this function, "source" is the player damaged. PlayerWantedLevel = getPlayerWantedLevel(source) AttackerTeam = getPlayerTeam(attacker) if(PlayerWantedLevel == 0) then if(AttackerTeam == "Police") then setElementHealth(source, getElementHealth(source) + loss) --Health of player damaged setElementHealth(attacker, getElementHealth(attacker) - 20) --Health of cop (who shot) outputChatBox("Don't shot unwanted players or you will lose health!", attacker, 255, 0, 0) end end end addEventHandler("onPlayerDamage", getRootElement(), OnPlayerIsDamaged) I want when i start the script he make outputChatBox This outputChatBox ( "#FF0000Harm Script Made By : #00FF00Hussein", getRootElement(), 255, 255, 255, true ) That what i want then i will test the script
  9. يا قلبي الشيء الي قلته انت " اذا الاعب ماهو مطلوب والشرطي يطلق عليه مايصير له شيء " هذا متوفر لآ تحكم وتتسرع علي
  10. I have problem with my script it doesn't work.. It doesn't start when I try to run it I don't know why... Here is my code : function teamName ( Police ) local playerTeam = getPlayerTeam ( source ) if ( playerTeam ) Police then function wanted () local wantedLvl = getPlayerWantedLevel ( ) if wantedLvl == 0 then function showLocalHealth() local playerHealth = getElementHealth ( getLocalPlayer() ) if playerHealth then function hpSlap ( sourcePlayer, command, targetPlayerName ) if not hasObjectPermissionTo(sourcePlayer, "command.slap", false) then return false end local targetPlayer = getPlayerFromName ( targetPlayerName ) if targetPlayer then setElementHealth ( targetPlayer, getElementHealth(targetPlayer) - 20 ) end addCommandHandler ( onPlayerDamage, "wanted", "showhealth", "hpslap", hpSlap ) I know there are many mistakes Because i'm junior scripter -- I want make script for police team When the police hit unwanted player Police get slap for 20 - For all time he hit the unwanted player
  11. يصير زي كذا ؟ اصلحولي الأخطاء اذا ممكن function teamName ( Police ) local playerTeam = getPlayerTeam ( source ) if ( playerTeam ) Police then function wanted () local wantedLvl = getPlayerWantedLevel ( ) if wantedLvl == 0 then function showLocalHealth() local playerHealth = getElementHealth ( getLocalPlayer() ) if playerHealth then function hpSlap ( sourcePlayer, command, targetPlayerName ) if not hasObjectPermissionTo(sourcePlayer, "command.slap", false) then return false end local targetPlayer = getPlayerFromName ( targetPlayerName ) if targetPlayer then setElementHealth ( targetPlayer, getElementHealth(targetPlayer) - 20 ) end addCommandHandler ( onPlayerDamage, "wanted", "showhealth", "hpslap", hpSlap )
  12. Hello guys << نبي نقلبها انجليزي اليوم ض1 I want code for police team , when police hit player his wanted lvl = 0 The police get slap for 20 for all time he hit him And make DXtext up the player : Don't harm unwanted player ------ بالعربي شباب ابغى كود لـ فريق الششرطة إن لما الشرطي يضرب لآعب نجومه صصفر الشرطي ينقص دمه 20 بالمية على كل ضربه يضربها للآعب و يآريت اذا بالإمكان يجي كلآم فوق الاعب مثلآ Don't harm unwanted player وبكون شششآكر وممنون آسف عالطلب ولكن منكم نسستفيد ونفيد
  13. ششكرا عالمبادره كنت بقولك انا الي ابغاه يكون لما تفتح التآب يجيك خيآر مكتوب Hours ومكتوب جنب كل لآعب كم لعب بالسيرفر انت شكلك فهمت غلط
  14. السسلام عليكم ورحمة الله وبركاته اخوآني احتاج كود عداد ساعات ابغى الي مسسجل بالسيرفر يحسب له التوآجد ويكون يجي قدام اسمه بالتاب ويَ ريت يكون يحسب الوقت الكلي بإنتظآركم بأحر من الجمر وإن شاء الله مابترك الموضوع الآ وانا مسويه
  15. same email just change number 1 to 2 تم ...
  16. ربي يعطيك الف الف عآفية الله يجزاااك خير يَ ريت ترسلي ايميلك الجديد بالخاص انا متمرد إن كان عرفتني أدمن بسيرفر حرب العصابات
  17. ششكرا تابل الثاني كان الي ابغاااه يعطيك العافية بسس اخوي ابغى السكربت هذا يكون لـ فريق معين مثلآ تيم اسمه Police وابغى لما يكون معه اقل من 50 يعطيه ويقوله تم اعطائك منحه وزي كذا ولما يكون معه اكثر يقوله لاتستطيع لأن معك العدد الازم وبكون ششآكر لكم
  18. يب يب ابغى لما يخش الماركر وسلآحه فيه اقل من 50 طلقة يعطيه زيادة 50 هذا حسب القيمة الي محددها السكربت فقط للتوضيح
  19. السسلام عليكم ورحمة الله وبركاته شباب عندي سكربت ابي اسويه هذا هو function onPickupHitFunc ( thePlayer ) -- when a pickup is hit if getPickupType ( source ) == 2 then -- check if it's a weapon pickup local ammo = getPickupAmmo ( source ) -- get the pickup ammo if ammo < 50 then -- if ammo is less than 50 local weapon = getPickupWeapon ( source ) -- store pickup weapon giveWeaponAmmo ( thePlayer, weapon, 50 ) -- give an extra 50 ammo end end end addEventHandler ( "onPickupHit", getRootElement(), onPickupHitFunc ) -- add the function as handler for onPickupHit ولكن ابغى اربط معاه شيء ثاني لأن لو حطيته كذا مابيصير شيء ! ابغى اسوي ماركر بإحداثيات معينة الي يروح عليه يصير عليه هالسسكربت وانا ماعرف اربط بين سكربتين يَ ريت تفرحوني وتساعدوني
  20. مسسساعده يَ شباب كل الي حطيتوه غلط
  21. طيب ضيفني [email protected] انت اصلآ يقولي هولستن ايميلك تهكر ايميلك القديم ماشوفك تخش فيه
×
×
  • Create New...