Jump to content

Panda

Members
  • Posts

    34
  • Joined

  • Last visited

Everything posted by Panda

  1. nope still.. function PlayMusic(element,sound) if element and getElementType(element) == "player" then local team = getPlayerTeam(element) if team and not (copTeams[getTeamName(team)])]] then -- the player who entered jail area isn't a cop triggerClientEvent("playMyMusic", getRootElement(), copTeams) end end end addEventHandler("onColShapeLeave", prisonCol, PlayMusic) It should be like this one .. When the cops hit the marker nothing will play but when a crim hits the marker it will play, the problem is the sound plays for all the server, everyone can hear it, i just want to lock the sound to cops.. Help please, thanks.
  2. @ Manawdyan, it won't work like that, i already tested it. @Tomas, i tested it but still, the music plays for the whole server not only for cops. Still need help
  3. Hello everyone, Sorry for disturbing you, but I made a new script when a crim enter to a col A sound will play, but it play for the whole server,i want it to be play only for cops. This is my script, function PlayMusic(element,sound) if element and getElementType(element) == "player" then local team = getPlayerTeam(element) if team and not (copTeams[getTeamName(team)]) then -- the player who entered jail area isn't a cop triggerClientEvent("playMyMusic", getRootElement(), copTeams) end end end addEventHandler("onColShapeLeave", prisonCol, PlayMusic) As you can see when a crim hits the col the sound will play, but when the cop hits the col nothing will happen, the problem is that i want to lock the sound to copTeams only. I really need help, thanks for reading. Cheers.
  4. Well done, it's working now. Thanks anyway.
  5. Well can you give me an example? I mean my script won't work, i understand. But can u help me, i mean do u have any idea how to do that? Thanks.
  6. Well mate can you help me with that, setWeaponProperty is made to set the skills and shits not to disable Crouching. ? Thanks.
  7. Nope, when we play 1vs1 with sniper only . When i try to hit the enemy he crouch to avoid the bullet. Hope that u'll help me thanks. And the point of my script is when i put the sniper in my hand then i won't be able to crouch, when i change to M4 or something else then i'll be able to crouch and play normal. Thank you.
  8. Hello everyone! Well It's my first topic over here so.. hope that u guys will help me . Anyway let's move on, Some people knows that Annoying shit "Crouch thing" I mean when i play vs someone with sniper he use C To escape from the shot,I wanna remove this noob trick, Help me please. I started with this, but it's not working! Server Side! function Test(weapon) if ( weapon == 34 ) then toggleControl ( source, "crouch", true) end end addEventHandler ("onPlayerDamage", getRootElement(), Test) Thanks.
×
×
  • Create New...