Jump to content

MIKI785

Members
  • Posts

    1,131
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by MIKI785

  1. MIKI785

    Question

    You can't output data of offline players as the player element obviously doesn't exist... use set/getAccountData for that.
  2. That's not really secure as you are able to download anything from the server's HTTP server, but average player has no idea about these things and thieves are not the smartest ones.
  3. Great news i've seen that. Here's the new trailer:
  4. MIKI785

    [Help] Ban

    You can't disable it in admin resource... admin resource uses the default ban system, it has nothing to do with its functionality.
  5. MIKI785

    Question

    If you're creating the picture clientsided (i guess you're not using takePlayerScreenshot) then the server will be like the middle man that will receive it from the first player that made the screenshot and then using triggerClientEvent it will send the data to the player that requested the screenshot and this player will then display it. Best way would be to save the image data using fileCreate and fileWrite and then display that using guiCreateStaticImage.
  6. Read this https://wiki.multitheftauto.com/wiki/Sc ... troduction first then.. you have to declare the script in meta.xml by using
  7. It's simple use these: onClientPlayerWasted playSound And try to learn, it's better than if someone posted the whole code for you here and you just copied it... i'm sure someone will do that though.
  8. The 'sx' variable is local inside the condition... either remove the local in front of it or add local sx, sy, sz above the if statement.
  9. You can't remove them but only disable them by cancelling onPlayerCommand, you can't even use them as you can't handle them and onPlayerCommand doesn't provide the arguments.
  10. You mean the name? Use getAccountPlayer with getAccount
  11. MIKI785

    HELP

    using givePlayerMoney clientsided isn't good idea really... and he wants to check if the local player has 5000 or more... Simply: if getPlayerMoney() > 4999 then --Whatever you need doing else outputChatBox("Not enough money") end
  12. No, if the vehicle is blown it's still there... it doesn't mean anything. Element data will be removed when the element is destroyed, blown up vehicle is not destroyed element.
  13. MIKI785

    [Help] Ban

    Then don't use banPlayer to ban yourself, you have to make your own functions and store bans yourself.
  14. MIKI785

    [Help] Ban

    Don't use it? You can't "disable" it, just don't use it...
  15. You don't change anything, and gta3.img is in GTA folder. You don't change its contents, you just replace the model in game through engine functions (look up at wiki).
  16. The first argument in the triggerClientEvent is optional and is the element it will get sent to. Its root by default so just put killer before the name of the event and that should do it.
  17. Well that's impossible, change the "k" to getElementData(source, "data") and see what the value is.
  18. I really dont understand you fully but you said Well if its 10 then of course it will pass because you are checking if it's equal to 10.
  19. Of course you can't change those... you can only modify resource files.
  20. Don't look at those dates, they were never right so i don't think they mean anything.
  21. MIKI785

    Brackets

    Simply none. I use brackets only when using arithmetic or when using more complex conditions.
  22. addCommandHandler("t12",function() setTime(12, 0) setMinuteDuration(3600000) outputChatBox("Time changed to 12:00!") end) Here one minute will last one hour.
  23. Still wouldn't freeze it though, put setMinuteDuration with some big value in it and it will look frozen. Btw. no need for semicolons.
  24. MIKI785

    reg

    It doesnt have acces to function.addAccount...
  25. Replace? Just edit it and then restart it, you don't have to restart the whole server, you never do. if you want to add a new resource then load it using refresh command.
×
×
  • Create New...