Jump to content

OGF

Members
  • Posts

    111
  • Joined

  • Last visited

Everything posted by OGF

  1. Try checking if the ped is in the vehicle 'isPedInVehicle' <--- if that returns true then use getPedOccupiedVehicle to destroy it.
  2. mega9, It isn't that hard to do, let him do it.
  3. Don't use 'local' when you create your markers.
  4. Read my edit, my mistake ^ it should be fixed next version.
  5. http://bugs.multitheftauto.com/view.php?id=7544&nbn=1 EDIT : ignore what I said, that bug will be fixed in 1.3.2
  6. Is your problem still that it displays twice or what? because it works fine. If it is still displaying twice, then you are obviously running another eventHandler with "onPlayerChat" .
  7. OGF

    colshape

    Ok, you need to make the localPlayer create that projectile though. So when the person hits it do createProjectile(localPlayer, 20, 1304.900,-2081.10,73.59, 200, hitElement) so it creates it at the objects position.
  8. OGF

    colshape

    Change createProjectile(object, 20, _,_,_, 200, hitElement) to createProjectile(localPlayer, 20, _,_,_, 200, hitElement)
  9. I've done it like that many times and never had problems.. It's the same as doing function mm ( thePlayer) , It simply overwrites the predefined variable ... "Source" for that function.
  10. Well I know that, but you need to fill in the parameter, and source does the job. And Sasuke thanks for fixing that.
  11. Assuming you did all of this client-sided, things such as the isPlayerAdmin should be on the server side. so make a function that has triggerClientEvent so when the button is pressed the window opens. the onJoin function also.. --Server sided script.. function isPlayerAdmin (source) local accountname = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user." ..accountname, aclGetGroup("Admin")) then return true elseif isObjectInACLGroup("user." ..accountname, aclGetGroup("SuperModerator")) then return true end end function openWindow(source) if isPlayerAdmin (source) then triggerClientEvent ( ... ) --code there. end end function onJoin () if isPlayerAdmin (source) then bindKey ( source, "F7", "down", openWindow) end end addEventHandler ( "onPlayerJoin", root, onJoin )
  12. OGF

    1s

    I don't understand I thought you wanted a jail system?
  13. I think it will be working for another month or so, but good luck. and don't get me wrong it sounds very cool.
  14. You didn't get the memo? this script is useless now.
  15. Just make sure where ever you open, you close. You would be surprised the destructive power it has when you open when there is one already opened or vice versa.
  16. Obviously not.....read
  17. OGF

    erro?

    Any errors in /debugscript 3 ?
  18. Sasuke, I told you it was seconds and to look at the syntax.
  19. It's not milliseconds, the default is in SECONDS, so what YOU did is seconds * 60 * 1000 Take a look at the syntax https://wiki.multitheftauto.com/wiki/BanPlayer
  20. Much easier if you bind the key server sided Good because it checks if the person is admin to bind the key and when the player presses the key, just a little more security. server function onlogin () local accountname = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user." ..accountname, aclGetGroup("Admin")) then bindKey ( source, "F6", "down", triggerWindow) end end addEventHandler ( "onPlayerLogin", root, onlogin ) function triggerWindow(source) local accountname = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user." ..accountname, aclGetGroup("Admin")) then triggerClientEvent ( contenthere ) end end
  21. try if editText ~= "" or timeBan ~= "" then
  22. Instead of triggering the serverside event if TimeBan you can try if editText and editText ~= "" then TriggerSeverEvent here.
  23. I think he means live stream something on to the games billboard? if so, that's not possible. Even just videos are difficult. If you mean live stream a game then you can use xfires broadcast system. Twitch tv not sure how you use it with MTA though.
×
×
  • Create New...