Jump to content

NeXuS™

Retired Staff
  • Posts

    1,134
  • Joined

  • Last visited

  • Days Won

    37

Everything posted by NeXuS™

  1. Try this one: serialList = { ["enteryourserialhere"] = true, ["anotherserialhere"] = true } addEventHandler("onPlayerJoin", getRootElement(), function() local selectedSerial = serialList[getPlayerSerial(source)] if (autoBan) then banPlayer ( source, false, false, true, getRootElement ( ), 'Wypierdalaj kurwo!' ) end end)
  2. Fixed, he doesn't need further help.
  3. Jees, I dont understand you dude. If someone else comes up with your name with a different serial, then ban them?
  4. Can you write down what do you exactly want from this script?
  5. Can you screenshot your settings with your name and a pic of your serial in F8 please? @Lorder
  6. Just copy your name from settings and your serial (F8->serial) on this page as a comment.
  7. Can you write down your name copied from the settings and your serial? (F8 -> serial) serialList = { ["#NeXuS"] = "73B520027203B67334A182ED91E6CD54" } addEventHandler("onPlayerJoin", getRootElement(), function() local selectedSerial = serialList[getPlayerName(source)] if (selectedSerial) then if selectedSerial ~= getPlayerSerial(source) then banPlayer ( source, false, false, true, getRootElement ( ), 'Wypierdalaj kurwo !' ) end end end) This one works totally fine for me.
  8. Alright. If you need further help, or any error appears, feel free to ask here.
  9. Keep your script as it is above this code. Replace just what I wrote not the whole script.
  10. <meta> <info author="Lorder" type="script" name="AutoBan" version="1.0.0" /> <script src="server.lua" type="server" /> </meta> And replace your function. addEventHandler ( 'onPlayerJoin', getRootElement ( ), function () local Serial = seriale[getPlayerName(source)] if ( Serial ) then if Serial ~= getPlayerSerial ( source ) then banPlayer ( source, false, false, true, getRootElement ( ), 'Wypierdalaj kurwo !' ) end end end )
  11. Can you repeat the process please? I think you missed smthing.
  12. Are you sure about no errors? Do you use debugscript 3?
  13. Do the other cars still spawn?
  14. Replace trailerSyncTimers[client] = setTimer(function(client) trailerSyncTimers = { } with trailerSyncTimers = { } trailerSyncTimers[client] = setTimer(function(client)
  15. So you added this? {400, -1298.5590820313,-1298.5590820313,59.394161224365}, {400, -2444.0551757813,-1155.2465820313,182.79537963867}, {400, -2934.8203125,1025.5888671875,6.0455174446106}, {400, -772.78924560547,2906.8093261719,36.291316986084},
  16. Which line did you add into the script?
  17. @pa3ck If you want to learn sth. you'll read after it. Add a bit of challange, so he'll learn about the functions.
  18. You'll have to do a renderTarget for that. And then draw the text on the rendertarget on an Y pos + an integer which you'll register at the top of your script. After that, you'll draw that renderTarget (dxDrawImage) and make a bindKey for scrolling which will add or subtract 1 from that integer which you registered.
  19. NeXuS™ presents dxDrawScrollingText Introduction Do you want to make a scrolling text? It's easy with just a function. Status IN DEVELOPMENT It's still IN DEVELOPMENT but it's published. Screenshot Usage example exports.dxDrawScrollingText:dxCreateScrollingText(500, 400, 100, "Test scrolling text", 60) (This is shown on the screenshot.) Download MTA:SA Community Link Syntax nil dxCreateScrollingText ( float x, float y, float width, string text, int pixelPer60 ) Source code
  20. clip: if set to true, the parts of the text that don't fit within the bounding box will be cut off. dxDrawText("Welcome to Test v1 - checking script, \ntoday you will be learning how\nWelcome to Test v1 - checking script, \ntoday you will be learning how\nWelcome to Test v1 - checking script, \ntoday you will be learning how\nWelcome to Test v1 - checking script, \ntoday you will be learning how\nWelcome to Test v1 - checking script, \ntoday you will be learning how\nWelcome to Test v1 - checking script, \ntoday you will be learning how\nWelcome to Test v1 - checking script, \ntoday you will be learning how\nWelcome to Test v1 - checking script, \ntoday you will be learning how\nWelcome to Test v1 - checking script, \ntoday you will be learning how\nWelcome to Test v1 - checking script, \ntoday you will be learning how\nWelcome to Test v1 - checking script, \ntoday you will be learning how\nWelcome to Test v1 - checking script, \ntoday you will be learning how\nWelcome to Test v1 - checking script, \ntoday you will be learning how\nWelcome to Test v1 - checking script, \ntoday you will be learning how\nWelcome to Test v1 - checking script, \ntoday you will be learning how\n", 455, 165, 813, 620, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", true, false, false, false, false)
  21. local gate = createObject ( 16775,2389.1000976563,1984.0999755859,55.799999237061, 0, 0, 0 ) if ( gate ) then setObjectScale ( gate, 20) end
  22. @Mr.Loki as I said, if he wanted to learn programming, he could have done it already. You can learn it by just looking at someone else's script, and I had time to just write a code for someone who is in need to help. ( And again, I won't start a fight here. )
  23. Maybe search for the attacking function and set a elementdata for the dog as "owner" and then check in the attacking function if he is following his owner, and if he is, don't attack him.
×
×
  • Create New...