Jump to content

BinSlayer1

Members
  • Posts

    491
  • Joined

  • Last visited

Everything posted by BinSlayer1

  1. You have to use full name with that command something like /yaziasda gokalpfirat hi should work
  2. create the sound for the local player, then use the clientside event onClientRender this event is triggered every single frame, so inside the handler function get the local player's position and setElementPosition(sound, x,y,z) afterwards the beauty of this is that the sound follows you everytime you move (every frame)
  3. because wiki examples usually assume you know how to implement them in your own code (therefore sometimes wiki examples only contain 1 defined function or so)
  4. http://bbq.to/client_1.1-untested-3000. ... 1_d990.dmp My crash. I was doing nothing in particular when it happend PS: I am also not able to talk, at all. Nobody can hear me, although I'm hearing everything myself.
  5. https://wiki.multitheftauto.com/wiki/LogIn 2nd argument is an account element, not a string. this makes no sense. onPlayerLogin obviously gets triggered when the player has logged in, so forcing logIn function again will not work. Read about it in the wiki. It says it returns false or nil in this case. tell us what you're trying to do and we'll find a workaround hopefully
  6. if source === getLocalPlayer() then return end does nobody notice there are 3 = ? lol you need to use 2 =
  7. @JR10 For every player in the server who finishes downloading, the serverside will be called (that means creating a bunch of unnecessary vehicles and peds)
  8. the problem is that onResourceStart is fired before the client finishes up downloading. the clientside code will only exist after the download has completed. So when you run your script, the client doesn't know about the client data yet Change the event/handler to something you'll know the client had downloaded when you run it.
  9. well maybe attach an object (like a ramp) to the back of the cargobob, then teleport the player so he stands on the ramp, then freeze him there (so he doesn't fall off) and give him some weapons using mta functions https://wiki.multitheftauto.com/wiki/CreateObject https://wiki.multitheftauto.com/wiki/AttachElements https://wiki.multitheftauto.com/wiki/SetElementPosition https://wiki.multitheftauto.com/wiki/SetElementFrozen https://wiki.multitheftauto.com/wiki/GiveWeapon Note: make everything server-side. There's no native way of doing what you want, I just came up with a workaround hope it helps
  10. so here's my crash dump, MeKorea told me to put it here, he said he had just started shader_car_paint and I crashed as soon as he did idk where the hell the attachment button is (if any) so i'll upload it somewhere else. http://bbq.to/client_1.1-untested-2943. ... 2_4d38.dmp
  11. well onColshapeHit would be able to return who hit who, and for better accuracy try to see if the vehicle was damaged too (i.e the onVehicleDamage was fired) all of this, assuming attaching a colshape to a vehicle works.
  12. the only event similar is: onVehicleDamage but it only returns how much damage your car takes. you could create a custom event maybe.. using colshapes or markers attached to cars. Problem with this is that it won't work very efficiently.. unless you find a way to get the colshape size to fit the car size perfectly.
  13. how could your way even work? So every client ADDS an EVENT for each remote player??? This isn't possible.. His problem is most likely when he triggers breakIce and endConvo the triggerClientEvent should look like this: triggerClientEvent(, 'breakIce', getRootElement()) You're most likely missing the first argument in the triggerClientEvent() function. You should read about it in the wiki to understand it fully
  14. Fedor_s, how is my way incorrect? Do that and you get your border lol..
  15. BinSlayer1

    mysql..

    I say you should store the data in using mysql, it's faster than file/xml storage, it can hold enormous amount of data and there's almost no lag even when the DB is huge. Don't even think about storing important data clientside. It's my understanding that this is not safe and hackers can somehow change their client scripts. Also, what if the client reinstalls MTA? His data will be lost forever. As an MTA developer once said, Clientside should only be used for the cosmetic part of a script.
  16. well border is just the same text (usually black colored) 1-2 pixels to the right, then another one to the left, upwards and downwards of the original text Borders come first as dxDrawTexts (since they're black) and the original text is the last one to be drawn (so it appears on top of the rest) dxDrawText(--black colored, 2 pixels down from original text position--) dxDrawText(--black colored, 2 pixels up from original text position--) dxDrawText(--black colored, 2 pixels to the right from original text position--) dxDrawText(--black colored, 2 pixels to the left from original text position --) dxDrawText(--original text parameters--) 4 dxDraws for the border, 1 for the original text. Hope I helped. There's another way (simplier too). Check this out: viewtopic.php?f=108&t=24262&hilit=textlib
  17. function findPlayerByName(playerPart) local pl = getPlayerFromName(playerPart) if isElement(pl) then return pl else for i,v in ipairs (getElementsByType ("player")) do if (string.find(string.gsub ( string.lower(getPlayerName(v)), '#%x%x%x%x%x%x', '' ),string.lower(playerPart))) then return v end end end end function wb ( playerSource, command, targetPlayerName ) local playerWho = findPlayerByName(targetPlayerName) if playerWho then local name = getPlayerName(playerWho) else name = targetPlayerName end outputChatBox ("<" .. getPlayerName (playerSource).."> Welcome Back, " ..tostring(name).." ! ",getRootElement (), 255, 255, 255, true) end addCommandHandler ( "wb", wb )
  18. well actually @ Buffalo's script, you need to make the function respawn (true) the vehicles after idle. It's false at the moment
  19. who's source? function OutputChatbox(player) outputChatBox (..getPlayerName(player).."is now part of the police force!") end addCommandHandler ("police",OutputChatbox)
  20. read here http://www.w3schools.com/sql/sql_alter.asp (I suggest using RunCode for this)
  21. I said "except for setPedControlState", that one will be clientside indeed
  22. https://wiki.multitheftauto.com/wiki/GetPedBonePosition https://wiki.multitheftauto.com/wiki/AttachElements However, this getPedBonePosition will return 3 floats (position of bones) and not a bone object/element, and an element is required for attachElements to work. You'll need to make a workaround here, see https://wiki.multitheftauto.com/wiki/CreateElement or https://wiki.multitheftauto.com/wiki/CreateObject if you use createObject make sure you make it invisible with setElementAlpha()
  23. BinSlayer1

    Help GetTeam

    assuming he wasn't mistaken already lol
  24. just make everything serverside except for setPedControlState what's the point of creating a street race if only the local player can see it?
  25. BinSlayer1

    Help GetTeam

    JR10 you keep calling getPlayerTeam with no argument lol
×
×
  • Create New...