Jump to content

3eBpA

Members
  • Posts

    38
  • Joined

  • Last visited

Recent Profile Visitors

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

3eBpA's Achievements

Rat

Rat (9/54)

0

Reputation

  1. 3eBpA

    Copying vehicle

    oh, ok, I'll try to do something =\
  2. Hello guys, I've got a question, can I copy tank for 2 or 3 different copyes, I mean, how can I create a copy of tank with same characteristics but with another model ? =\
  3. also, is it enough RAM 512 mb and CPU 750 mhz plus HDD 25gb for 100 - 200 slots server ?
  4. hello guys, do u know any good and cheap server hosting or VPS's ? For mta server, over 50 - 100 slots
  5. So use onClientPlayerWeaponFire event instead. But, there is another important note: and you are using the weaponID 3 so according to this list: Weapon ids list it is a melee weapon, so it won't work. So what can we do now ?? We can try to find another event, and I found this event: onClientPlayerDamage and it gives us an important parameter: Great ! We can do it with this event: function Stun( attacker ) outputChatBox("Took damage !") local policeTeam = getTeamFromName("police") if getPlayerTeam(attacker) == policeTeam and getPlayerTeam(source) ~= policeTeam and getElementModel(attacker) == 3 then outputChatbox("Frozen !") setElementFrozen(source, true) end end addEventHandler("onClientPlayerDamage", localPlayer, Stun) Tell me if it works. Regards, Citizen yep, works, thanks man
  6. So use onClientPlayerWeaponFire event instead. But, there is another important note: and you are using the weaponID 3 so according to this list: Weapon ids list it is a melee weapon, so it won't work. So what can we do now ?? We can try to find another event, and I found this event: onClientPlayerDamage and it gives us an important parameter: Great ! We can do it with this event: function Stun( attacker ) outputChatBox("Took damage !") local policeTeam = getTeamFromName("police") if getPlayerTeam(attacker) == policeTeam and getPlayerTeam(source) ~= policeTeam and getElementModel(attacker) == 3 then outputChatbox("Frozen !") setElementFrozen(source, true) end end addEventHandler("onClientPlayerDamage", localPlayer, Stun) Tell me if it works. Regards, Citizen thanks, I'm gonna try this tomorrow
  7. thank you man, your really save me from sleepless nights
  8. I've changed OnClientWeaponFire to onClientWeaponFire, I think the problem is in teams =\
  9. well, why my code doesn't work then ? : O function Stun(attacker) if getPlayerTeam(attacker) == police and getPlayerTeam(source) ~= police and getElementModel(attacker) == 3 setElementFrozen(source) end end addEventHandler("OnClientWeaponFire", getRootElement(), Stun) it should stun guy with weaponID 3 if his team != police but it doesn't works, maybe because team creation is written in server.lua ?
  10. Hello guys, I have got a question, how can I use a server script variables or functions to client script, for example, teams, I've got teams on my server and I need to use them on client, how can I do that ? =\
  11. well, can I use a function from the client ?
  12. no errors, when I'm going to the marker, there's no GUI window but looks like it should appear =\, when I'm hitting marker, there should be used the truckerGUI function, which is creating gui window and button
  13. triggerserverevent ? Ok, I'll try
  14. and also, I've tried, script don't works, even if I'm copypasting it from here
  15. oh, so I should create vehicle from server-side ? if yes, so, can u show me how to do that ?
×
×
  • Create New...