Jump to content

Hussain

Members
  • Posts

    41
  • Joined

  • Last visited

About Hussain

  • Birthday 24/07/1996

Details

  • Location
    Saudi Arabia

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Hussain's Achievements

Rat

Rat (9/54)

0

Reputation

  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 ومكتوب جنب كل لآعب كم لعب بالسيرفر انت شكلك فهمت غلط
×
×
  • Create New...