Jump to content

marty000123

Members
  • Posts

    256
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by marty000123

  1. I'll give this a try, thanks. And I will try this as well, thx.
  2. function moveBarrier(hitPlayer, matchingDimension) if (getElementType(hitPlayer) ~= "player") then return end local theVehicle = getPlayerOccupiedVehicle ( hitPlayer ) local id = getVehicleID ( theVehicle ) Expected argument at getVehicleID, got boolean. Help?
  3. It's set to your element. Meaning that it's not only stuck to the script the function is written in.
  4. How about you try by urself first?
  5. It really depends on your ping, the server settings etc. Can you describe it a little bit more clear?
  6. I dunno, thought it was the name of the gun.
  7. addEvent( "adjustSpeed", true ) addEventHandler("adjustSpeed", getLocalPlayer(), function() setGameSpeed(tonumber(1.3)) setWeaponProperty(WEAPON_SHOVEL, "damage", 34) end ) addEvent( "removeSpeed", true ) addEventHandler("removeSpeed", getLocalPlayer(), function() setGameSpeed(tonumber(1)) setWeaponProperty(WEAPON_SHOVEL, "damage", 4) end ) It tells me that it expected a weapon name at argument 1, but WEAPON_SHOVEL is a valid weapon name. Can't we change shovel damage? (this is client sided, first function when the zombie spawns second function when he dies)
  8. I'll be helping you a bit here: fix ur most obvious mistakes. First of all, you used two functions in one. That's not possible. Let's just remove that one ''function cook''. Second, I see you have ''function giveoptions (theplayer) and then u use ''player'' or ''getRootElement() everywhere. That doesn't work, u have to use only one. So, change giveoptions(thePlayer) to giveoptions(player) so it all makes sense again. Then, addCommandHandler("cookmeth") is correct, but '', cook)'' is not. You have to put the name of the function there. Change it to addCommandHandler("cookmeth"), because using a variable is not necessary because the only variable that can do a command is a player. Do that, then tell me if u need any more help. Good luck with ur script (u can also add me on skype @ marty55501, ill be glad to help)
  9. Hello Now when I'm standing infront of my toll, it requires a command to open it. I did /paytoll. Now it doesn't work, because I don't know how to do it. The script is server sided. This is my structure: function checkvehicle if car then if heavyveh then triggerEvent(heavy) end end addEventHandler(onMarkerHit) So when it's a heavy vehicle, it redirects to the Event called heavy. Now my problem is, how do I redirect this to another event/function while having the enter the command? I mean, it should be something like this: addEvent(heavy) function() bla blah end addCommandHandler("paytoll") Right now, I can do /paytoll everywhere because i dont know how to connect it from the checkvehicle function. Help would be appreciated!
  10. marty000123

    help

    Hello I made a command called /paytoll. The barrier goes up, but someone who quickly does it after the first person bugs the barrier. How do I disable the command after the first usage? Like, if player A does /paytoll, and 2 seconds later a guy comes and does /paytoll as well, the resource will return false and an outputChatbox("You have to wait 10 seconds!") Thanks in advance
  11. you dont have to type like this
  12. marty000123

    Help

    What's the problem here?
  13. He acts like a really tough guy. Probably is a mad 13y/o kid who spent their mom's cc money on an online booter.
  14. I don't see the difference?
  15. line 42: destroyElement(blips[vehicles]) Error: Bad Argument (expected argument 1)
  16. function removeGun(source) if getTeamName(source) == "Staff" then takeAllWeapons(source) end end addEventHandler("onPlayerWeaponSwitch", getRootElement(), removeGun) addEventHandler("onPlayerClick", getRootElement(), removeGun) Problem: It doesn't work, the Staff member can still shoot. The point of the script: Revoke the Staff member's weapons when it scrolls/clicks.
  17. http://lmgtfy.com/?q=notepad%2B%2B+download
  18. Sorry but I changed my mind, I'm not doing it for free. This is something you should really try yourself first. Watch some tutorials on youtube, or check the MTA:SA wiki. This is quite a request you got here to be honest.
  19. I can do that but I think that's quite time consuming... Earliest would be tomorrow or the day after considering that you're probably not paying for it.
×
×
  • Create New...