Jump to content

BinSlayer1

Members
  • Posts

    491
  • Joined

  • Last visited

Everything posted by BinSlayer1

  1. for loop? http://www.lua.org/pil/4.3.4.html for i = 1, 1000 do
  2. what do you mean where? in a .lua script inside a server resource.. and how? well you need to script this.. Santa only works on Christmas https://wiki.multitheftauto.com/wiki/Scr ... troduction
  3. addEventHandler ( "onClientGUIClick", loginb, sendLogin, false ) every event should have 'false' like that ^
  4. So fix what debugscript said? Lazy people.. setGameSpeed(tonumber(3) Should be setGameSpeed(tonumber(3)) don't just copy paste everything damnit, try to learn so you don't ask everytime
  5. getting a player's country obviously requires getPlayerIP() I bet you didn't give the resource admin rights, even though you can clearly see in the resource's description @ community that you need to do so
  6. hitElement is most likely not a player check that it is a player if getElementType(hitElement) == "player" then
  7. addEventHandler("onClientResourceStart",getRootElement(),stopCamSwitch) wtf this kills a timer and attempts to cancel an event you mean this? addEventHandler("onClientResourceStart",getRootElement(),switchMatrixCams)
  8. BinSlayer1

    Problems

    well first of all, you're getting the name of the local player instead of 'source' secondly, your 'create' event simply fires up an onClientRender and the function attached to it will not get any 'myName' argument I suggest rewrite everything define a table of players onClientPlayerJoin, add the source's name to the table if table length > 3 then empty the whole table onClientRender should run at all times in the script (i.e fired when the resource starts) inside onClientRender, loop through the table of players and make as many drawTexts as the length of the table
  9. lol that's just what I'm trying to say.. think about it when you join, your client files are NOT yet downloaded (or initialized) . So you can't use onPlayerJoin to trigger client events. This is where onClientResourceStart comes in handy. It is fired RIGHT when the files are initialized, so every GUI created onClientResourceStart will work. about more events and functions.. why not? function test() triggerClientEvent(...) triggerClientEvent(...) triggerClientEvent(...) triggerClientEvent(...) end
  10. well your debugscript errors happen because you trigger clientside events while the client is still downloading files so you basically trigger non-existent stuff Just like Aibo said, I too suggest you use onClientResourceStart
  11. No. Why? This will simply change the dff and txd of a given model ID. Let's say you're doing it for infernus. When you run this resource, all infernuses will look like your downloaded cars. It's up to you to make the cars stay parked and it has nothing to do with replacing the dff and txd..
  12. translating goes both ways how can you translate from English to Bulgarian and not knowing English?
  13. http://mta.dzek.eu/vehicle/ this should apparently generate a resource for you simply start this resource from mtaserver.conf automatically and you'll "permanently" have these cars
  14. viewtopic.php?f=130&t=35839#p370239
  15. How would we know? We don't have Valhalla's scripts like you do And how is this "learning" ? If you want to learn you need to at least make the effort of finding out the script/line in which the players login in the valhalla gamemode and check what happens there, or at least post the login event so we can try to help you out more
  16. karlis, it actually makes sense Watch this Smallville video and see how Clark Kent's vision is in "slow mo" while the rest of the people see him running at light speed This is just to clarify the logic of it, I know it can't/won't be done in MTA
  17. Whaat? You can't make your own animation. Only game developers can. MTA simply uses the GTA:SA animations So there is no Scripting way of doing this (since the author asked in the scripting section)
  18. Other than this? https://wiki.multitheftauto.com/wiki/Animations Then no
  19. also, guiStaticImageLoadImage doesn't work, wiki says "PLEASE NOTE: In 1.0, this function always returns false" It might just do the same in 1.1 too unless they fixed it
  20. he probably wants everything else to slow down except his local player, which isn't possible I think
  21. Not sure if I know what you mean, but can't you just setElementData on the marker with the id when you create it in the FOR ?
  22. Please try to explain better what you want to do, I'm not understanding it at all
  23. https://wiki.multitheftauto.com/wiki/Int ... the_button If you had just read the gui scripting tutorial this question wouldn't be here mta wiki has examples of scripts and how to do various stuff
  24. 1. playerName doesn't exist 2. why would you get the team of the source? Simply set his team if acl finds him as being an admin
  25. to make GUI fit on all resolutions use the relative argument in the guiCreateLabel if you need further help, you'll have to post your script
×
×
  • Create New...