Jump to content

'LinKin

Members
  • Posts

    636
  • Joined

  • Last visited

Everything posted by 'LinKin

  1. I get a bunch of errors when trying to open the index.html or when uncompressing it................. PC Freezes... meh. Can you upload a working one?
  2. It wouldn't work for what I'm scripting it for.
  3. Hello, I have this: addEventHandler("onClientPlayerWasted", root, function() setTimer(function(thePlayer) if isPedDead(thePlayer) then outputChatBox(getPlayerName(thePlayer).." isDead") else outputChatBox(getPlayerName(thePlayer).." isNotDead") end end, 2000, 1, source) end) When I'm alone in the server (Destruction Derby game-mode) and I die, it shows that I'm dead. So it's right. But when I'm not alone in the server and I die, it says that I am NOT dead.. If other player dies, it works OK, it shows that he's dead, but it seems it just doesn't work with me, why? Thanks. EDIT: I have tried by changing the timer's execution time. It seems that anything >= 2000 won't work. While anything < 2000 would work flawlessly. But I still wonder; Why with other players it works no matter what? (I tried setting the timer to 4000 ms and it still worked for other players). This script is client-side (obviously), do you think that the Laptop that I'm currently using is causing the trouble? because I don't really see any other reason.
  4. Hello, Is there a more 'direct' way to check if a map has respawn? Or is it strictly nessesary to read the meta from it, loop the attributes, etc... ?
  5. What? If you want to remove an specific player IN THAT table, you have two ways: 1) table.remove(players, table_index) 2) players[table_index] = nil -- Where table_index is the position of the table that you want to remove.
  6. Drugs for health. Are you victim of the bullsh*t media? - Off topic : )
  7. OMG! I didn't think those files contained this info. Thanks a lot!. It has worked !
  8. Hello, I've edited admin resource. I removed the commands ban, mute, kick, shout. I removed them at admin_server.lua inside the "aPlayer" event. It works, whenever I type /mute linkin it doesn't work. But, when I type for example /mute linka it shows "Error: 'linka' matches no players' I searched in EVERY file of the admin resource and I didn't find any other place where commands ban, mute, kick, shout were implemented.. As I've another script that gets a player from a part of his nick, the server is showing me two errors when I try to mute/ban/kick a player that is not in the server. I don't really know why these commands are still 'called' inside the admin resource, could someone give me a hint? Thanks
  9. Yeah, I'd need to create some kind of download tree.. I've wanted to do so but Idk where to start from.
  10. I found this: https://community.multitheftauto.com/in ... ls&id=7349. Using a value like 15 for blur strength causes it to look very bad. How ever I think I'll use the default blur (6). - This client side. But, the real thing that I forgot to mention at the beggining is if I can do this server side, since the point is to set the cameraMatrix of a player who's downloading the resources and blur the background since some text is showing "Loading Resources"
  11. Hmm, I don't mean motion blur (the one that appears when you're at certain speed) but just like a static-blur.
  12. Hello, Is there some function that I could use in order to blur the screen? Thanks.
  13. That's what I want to avoid (using another command). I want to use the same one. I can't really find a way to do it
  14. But for example, How can I remake the /ban command? If you do it, it will ban the IP of the player, I had changed it before inside the admin resource, but I'm trying to find a way to do it separately. The point is that I want to make these custom commands to work in another way
  15. Hello, How can I overwrite some functions such as ban, kick, mute, etc... without editing them into the admin resource? Thanks.
  16. You've got the table in the server. Then when a client opens the GUI, you trigger a server event where you select the values u want from the table and then trigger a client event to return the info. And yes, it would be better than elementData, it'd save CPU and bandwith. Simply, why would a player need to know the inventory of every player on the server? - It's unnessesary.
  17. Sorry, what? HTML? I never readed about HTML when I readed about PHP SDK. What do you use that HTML code for?
  18. 'LinKin

    [Q&A]

    Hmm, IMO you shouldn't be into this. However; You can use a table to store the messages and then onClientRender use a for loop on the table and show them changing the height where they're drawn.
  19. Okay works, but, how to completely remove them? I mean I've removed trafficsensor from the addon files in the server. So when I start it it outputs a warning sayin that the resource could not be found, how to avoid this? I thought the script was being initialized by the mtaserver.config file, but it's not.
  20. Hello, As the topic says, How can I prevent a race-addon to be started when the server starts? (e.g. race-trafficsensor) Thanks.
  21. Didn't get that part. Inspect the server?... PS: What is "you/s" ?
  22. Tried that, tried using relative GUI, and nothing makes what it should make. Seems the width and height of a GUI is limited or something like that..... I tried creating a window with 0 width and 0 height and this is what I got:
×
×
  • Create New...