-
Posts
1,134 -
Joined
-
Last visited
-
Days Won
37
Everything posted by NeXuS™
-
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)
-
Fixed, he doesn't need further help.
-
Jees, I dont understand you dude. If someone else comes up with your name with a different serial, then ban them?
-
Can you write down what do you exactly want from this script?
-
Can you screenshot your settings with your name and a pic of your serial in F8 please? @Lorder
-
Just copy your name from settings and your serial (F8->serial) on this page as a comment.
-
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.
-
Alright. If you need further help, or any error appears, feel free to ask here.
-
Keep your script as it is above this code. Replace just what I wrote not the whole script.
-
<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 )
-
Can you repeat the process please? I think you missed smthing.
-
Are you sure about no errors? Do you use debugscript 3?
-
Do the other cars still spawn?
-
Replace trailerSyncTimers[client] = setTimer(function(client) trailerSyncTimers = { } with trailerSyncTimers = { } trailerSyncTimers[client] = setTimer(function(client)
-
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},
-
Which line did you add into the script?
-
Check how many vehicle the player has in the base HELP URGENT
NeXuS™ replied to Gabriel1375's topic in Scripting
@pa3ck If you want to learn sth. you'll read after it. Add a bit of challange, so he'll learn about the functions. -
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.
-
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
-
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)
-
local gate = createObject ( 16775,2389.1000976563,1984.0999755859,55.799999237061, 0, 0, 0 ) if ( gate ) then setObjectScale ( gate, 20) end
-
Check how many vehicle the player has in the base HELP URGENT
NeXuS™ replied to Gabriel1375's topic in Scripting
@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. ) -
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.
-
What doesn't work about this?