Jump to content

CapY

Members
  • Posts

    1,646
  • Joined

  • Last visited

Everything posted by CapY

  1. CapY

    Explosive bullets

    Lol no errors , but explosive bullets dont work .
  2. CapY

    MTA been hacked?

    nice 12 month bump Yep , isnt it nice ?
  3. CapY

    Explosive bullets

    Error : http://imageshack.us/f/52/exbullets.png/
  4. CapY

    Explosive bullets

    What is not good now ? server: function bulletexplosion (hitX, hitY, hitZ) triggerClientEvent("onClientPlayerWeaponFire",weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) createExplosion ( hitX, hitY, hitZ, 2 ) end addEventHandler("onPlayerLogin", root, function ( _, acc ) local accName = getAccountName ( acc ) if isObjectInACLGroup ( "user." .. getPlayerName(source), aclGetGroup ( "FGMembers" ) ) then addEvent("bulletboom",true) addEventHandler("bulletboom",getRootElement(),bulletexplosion) end end ) client: function weaponfired (weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) triggerServerEvent ("bulletboom", source, hitX, hitY, hitZ ) end addEvent( "onClientPlayerWeaponFire", true ) addEventHandler ( "onClientPlayerWeaponFire", getLocalPlayer (), weaponfired )
  5. CapY

    Explosive bullets

    Why this trigger doesnt works ? function bulletexplosion (hitX, hitY, hitZ) triggerClientEvent("weaponfired",weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) createExplosion ( hitX, hitY, hitZ, 2 ) end addEventHandler("onPlayerLogin", root, function ( _, acc ) local accName = getAccountName ( acc ) if isObjectInACLGroup ( "user." .. getPlayerName(source), aclGetGroup ( "FGMembers" ) ) then addEvent("bulletboom",true) addEventHandler("bulletboom",getRootElement(),bulletexplosion) end end )
  6. CapY

    Explosive bullets

    Jacob , that's dont work. And event is not triggered to client side ( do i need client anymore? ) Client: function weaponfired (weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) triggerServerEvent ("bulletboom", source, hitX, hitY, hitZ ) end addEventHandler ( "onClientPlayerWeaponFire", getLocalPlayer (), weaponfired ) And on the server there is error on 5 line . '(name)' expected near '(' Server: function bulletexplosion (hitX, hitY, hitZ) createExplosion ( hitX, hitY, hitZ, 2 ) end function ( thePlayer ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ( "user." .. playerName, aclGetGroup ( "FGMembers" ) ) then addEvent("bulletboom",true) addEventHandler("bulletboom",getRootElement(),bulletexplosion) end end )
  7. I have downloaded explosive bullets from community and i want to make it for members only , why this dont work ? Server: function bulletexplosion (hitX, hitY, hitZ) createExplosion ( hitX, hitY, hitZ, 2 ) end addEventHandler("bulletboom",getRootElement(),bulletexplosion) function ( thePlayer ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ( "user." .. playerName, aclGetGroup ( "FGMembers" ) ) then addEvent("bulletboom",true) else cancelEvent("bulletboom",true) end end ) If client needed i will post it .
  8. CapY

    MTA been hacked?

    Varez can you post all aexec functions here ?
  9. Easier way .... Load GUI with guieditor and print absolute and relative position .
  10. Open Play resource and edit broph.lua
  11. Jacob have problems for the first time Reinstall a server or MTA and that's it , just store somewhere config, modules and resources ( if needed )
  12. CapY

    vehramps

    Stolen from who ? Ok , will done it . IDK what you have against me ( mental problems ) ...
  13. CapY

    F1

    But only the gui will be hidden and functions will be available still ... How to fix it ?
  14. CapY

    vehramps

    Why not , server side is required.
  15. CapY

    F1

    Gonna try it .
  16. CapY

    JSave Resource

    Is it supposted to spawn you at the place what you save when you join ?
  17. CapY

    F1

    onPlayerLogin, onPlayerLogout and can you give me more functions ?
  18. CapY

    F1

    Is it possible when player joins to the server and when he press F1 to don't see these buttons: weapons , speed , grav and time . Can it be only available for admins ?
  19. CapY

    spawn blip

    how to show it ? You just showed it .
  20. Community resource . When i type invisible it's all good , but when i type it again , ped and players name shows , but blip stays hidden.
  21. And this must stay in the resource : iv = 0 iv = 0 function toggleInvis( source ) if iv == 0 then iv = 1 setPlayerNametagShowing(source, false) setElementAlpha(source, 0) else iv = 0 setPlayerNametagShowing(source, true) setElementAlpha(source, 255) end end
  22. CapY

    spawn blip

    Resource is running .
×
×
  • Create New...