Jump to content

Hale

Members
  • Posts

    174
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by Hale

  1. "Prolly" my ass, that's what happens when he wants to act smart lol
  2. Thank you, Jesus...
  3. Yeah I thought so, too much of a work then isn't it? Maybe, yeah, I'll see what I can do when I'm able to. And again, you have a point. Just a lame suggestion by some guy, it got me intrigued so I asked
  4. Perhaps the resources are already running?
  5. You obviously don't know how to check if your code is legit and working, and if you're not cooperative I'm not going to bother helping you. Good luck with the code.
  6. Try this: civilian = createTeam("Civilian Workers",255,255,0) function Civilian (source) local civteam = getTeamFromName("Civilian Workers") local playerTeam = getPlayerTeam ( source ) setPlayerWantedLevel(source, 0) local wantedLevel = getPlayerWantedLevel (source) if playerTeam == civteam then outputChatBox("You are already on Civilian team",source,255,0,0) return end if wantedLevel == 0 then veh = isPedInVehicle(source) if (veh) then outputChatBox("You are on vehicle",source,255,0,0) return end outputChatBox("You are now a Civilian",source,0,255,0) setPlayerTeam(source,civilian) elseif wantedLevel > 0 then outputChatBox("You are wanted",source,255,0,0) end end addCommandHandler("civilian",Civilian) Tell me if it still outputs the same. Also, are you getting any errors in the debug?
  7. Did you try it when you were not wanted?
  8. Wrong forum I believe. https://forum.multitheftauto.com/viewforum.php?f=108
  9. What's your problem pal, why do you have to be so immature? Are you sure that you're typing the command correctly? Like I said, you must type /st GM TEAM
  10. Buddy, how can I change something when there is no need for change? I highlighted what you wrote, you said you tried the command while you were wanted, that's why it always outputs "You are wanted".
  11. Try this: function newTeam( source, command, teamName ) if teamName then createTeam(teamName) local myTeam = getTeamFromName(teamName) if (myTeam ~= nil) then setPlayerTeam(source, myTeam) end end end addCommandHandler("st", newTeam) BUT this function is /st GM TEAM, you choose your own name for the team.
  12. Hale

    Fugitive

    What the hell did you just say? Lol, I didn't understand a word...
  13. We all know how awful it is when you scale an object and notice that only its textures scaled, but not the actual collision. Well, that's my suggestion here, that scaling objects also scales the collision of the object, not only the texture itself. I personally have no idea if that is even do-able, but a response from the developers would be appreciated. Besides that, there's also a problem with non-collidable objects, which you cannot delete nor click on once you've created them (in map editor). I suggest you rework the map editor so once the player clicks on a texture then it selects the object, rather than player having to click on the collision of an object. Hopefully you'll understand what I mean. I'd like some replies to this to see whether this is possible or not, thanks!
  14. Maybe your internet got slower? If nothing else, maybe you became slightly worse in DD?
  15. If you own the server you can simply remove yourself from the banlist and restart the server...
  16. Why don't you just ask the guy? Maybe he's using a different object?
  17. http://forum.sa-mp.com/showthread.php?t=282801
  18. Hale

    PILOT JOB

    Which question are you talking about now?
  19. local wantedLevel = getPlayerWantedLevel (source) if playerTeam == civteam then outputChatBox("You are already on Civilian team",source,255,0,0) return end if wantedLevel == 0 then veh = isPedInVehicle(source) if (veh) then outputChatBox("You are on vehicle",source,255,0,0) return end outputChatBox("You are now a Civilian",source,0,255,0) setPlayerTeam(source,civilian) elseif wantedLevel > 0 then outputChatBox("You are wanted",source,255,0,0) end end addCommandHandler("civilian",Civilian)
  20. Try unbinding the key until the player stops browsing? Not sure, never even knew "backspace" returns you to your previous page. Or bind the key with a new function that puts him back onto the page he was.
  21. I suggest you try putting the 'guiLabelSetHorizontalAlign(errorW.label, "left", true)' after 'guiSetPosition(errorW.label, x / 0.8 * 0.1, (y * s + (x / 0.8 * 0.6) / 3) / 0.85 * 0.05 + 0.01470588235 * height, false)'
  22. Hale

    PILOT JOB

    Not entirely sure if I got you right, but here's a possible solution for your 2. question: addEventHandler("onClientVehicleExit",rootElement, function () if isElement(marker) then timerDestroy = setTimer(function() removeEventHandler("onClientMarkerHit",marker,onPilotStopHit) destroyElement(marker) end, 10000, 1) end if isElement(blip) then setTimer(destroyElement(blip), 10000, 1) end end) About the 1. question: I suggest you add this in the first setTimer I made: addEventHandler("OnClientVehicleEnter", rootElement, function() local veh = getPedVehicle(client) if veh == originalveh then -- about the originalveh, you need to make a function at the beggining of your clientside script, just declare it if isTimer(timerDestroy) then killTimer(timerDestroy) end end end)
  23. I was wondering if there's a way for a player seeing anothers player chatbox? And when I say chatbox I mean the actual chatbox, every single line of it (maybe even if the player is typing something?). Thanks in advance!
  24. About the first problem: I suggest you try remaking the GUI (as you said it's nothing big) in the guieditor resource (https://community.multitheftauto.com/?p ... ils&id=141), it's one of the best thing made for GUIs and you'll find it really helpful. Try using that and see if you can fix your problem (I'd help you out in other ways but I got lost when you mentioned the same function 4 times in a row). About the second problem: Can you take a screenshot of what it looks like before and after you press "backspace"? As I don't really understand your problem.
  25. Hale

    time random

    local money = 0 -- variable that's used for storing the money, you must have this in order to raise the money by 50 every time setTimer(function() local randomPlayer = getRandomPlayer() -- function for getting a random player money = money + 50 -- increases the money every time executed by 50 givePlayerMoney(randomPlayer, money) -- function to give the random player money end, 5000, 0) -- if you dont know what these numbers are, go search "setTimer syntax MTA" It's not hard to make, try doing it yourself next time.
×
×
  • Create New...