Jump to content

yesyesok

Members
  • Posts

    82
  • Joined

  • Last visited

Details

  • Gang
    ss

Recent Profile Visitors

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

yesyesok's Achievements

Transformer

Transformer (11/54)

0

Reputation

  1. yesyesok

    help

    You are welcome. one more question this isn't working, I WAS TRYING TO SET army teams heath 15 when they spawn but it isn't working. Sorry if i'm asking too many questions. addEventHandler ( "onPlayerSpawn", getLocalPlayer(), function() local playerTeam = getPlayerTeam(source) if (playerTeam) then if getTeamName(playerTeam) == "Army" then setElementHealth (source,15) end end) and one more thing how do i make army team players not being able to pick up sniper and ak47.
  2. yesyesok

    help

    Hey, I'm using the tactics gamemode, I was trying make the team tactics have godmode and the way to kill them is when players shoot at thier left arm (id 5). what should i do, if possible please post it with example, cuz i can't understand how to do that. team tactics cannot die with any weapon but when the weapon hits their left arm they lose 60% hp.
  3. Hey can any one tell me how do i make players from team tactics damage proof I mean the only way to kill them should be when they get shot on right arm like they cannot be killed with any weapon but if players shoot at thier right arm they lose 50% hp.
  4. yesyesok

    help

    Killped is server side function. what should i do?
  5. In another file, in the map's files? There will be 2 lua files, one of those files contain that.
  6. Type /stop and make sure you are in the staff team.
  7. yesyesok

    help

    i already gave it to you addEventHandler ( "onClientPlayerDamage", localPlayer, function( attacker, weapon, bodypart ) local playerTeam = getPlayerTeam(source) if playerTeam and if ( weapon == 37 ) and ( getTeamName(playerTeam) == "tactics" ) then cancelEvent() end end end ) untested you must read this about death reason : Here When a player was shot by a weapon, the respective weapon ID is the death reason ID thanks you soo much, There was one Error anyway i've fixed it and one more question I want players to die in 1 second with every weapon expect explostion addEventHandler("onPlayerDamage", getRootElement() , function (attacker, weapon, bodypart, loss) killPed(source,attacker,weapon) if weapon == 51 then cancelEvent() end end ) not working and no error wanted to cancle the event from id 51, they die in 1 second even with explstion.
  8. yesyesok

    help

    That's not what i asked, I'm trying make team tactics don't get damage from fire. Id 37
  9. yesyesok

    help

    Not working Error: unexpected symbol near 'if' line 5 addEventHandler ( "onClientPlayerDamage", localPlayer, function() local playerTeam = getPlayerTeam(source) if playerTeam and if ( weapon == 37 ) and ( getTeamName(playerTeam) == "tactics" ) then cancelEvent() end end end )
  10. yesyesok

    help

    Tysm i'll try this.
  11. yesyesok

    help

    np , about the second question sorry i don't undrestand what you want exactly I don't want the team tactics get damage from fire.
  12. yesyesok

    help

    Tysm Walid What about my second question? What's wrong in the script?
  13. yesyesok

    help

    and also this isn't working trying to make tactis team fire proof addEventHandler ( "onClientPlayerDamage", localPlayer, function() if ( weapon == 37 ) and ( getTeamName (source) == "tactics" ) then cancelEvent() end end) sorry i'm not that good at lua, just trying make script from wiki and forum examples.
  14. yesyesok

    help

    not working addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, player in ipairs ( getElementsByType ( "player" ) ) do local attached = getAttachedElements ( player ) if ( attached ) then for _, element in ipairs ( attached ) do if ( getTeamName ( source ) == "tactics" ) and if ( getElementType ( element ) == "blip" ) then destroyElement ( element ) end end end end end )
×
×
  • Create New...