-
Posts
1,412 -
Joined
-
Last visited
-
Days Won
2
Everything posted by WASSIm.
-
local x, y, z = 1516.41675, -1847.13733, 13.54688 local lixo1 = createMarker(x, y, z, 'cylinder', 2.0, 255, 0, 0, 150) function aLixeiro (source) if getPlayerTeam (source, Lixeiros) then outputChatBox("Você pegou o lixo na casa!", source, 255, 0, 0) givePlayerMoney ( source, 50 ) destroyElement(lixo1) setTimer(function() lixo1 = createMarker(x, y, z, 'cylinder', 2.0, 255, 0, 0, 150) end, 2000, 1) else outputChatBox("Você não é lixeiro!", source, 255, 0, 0) end end addEventHandler( "onMarkerHit", lixo1, aLixeiro )
-
exports.scoreboard:addScoreboardColumn("id", root, 1) addEventHandler("onResourceStart", root, function() for id,player in ipairs(getElementsByType("player")) do setElementData(player , "id", id) end end ) function getIDFromPlayer(player) return getElementData(player , "id") end function getPlayerFromID(theID) if theID then local players = getElementsByType("player") for i,p in ipairs(players) do local id = getElementData(p, "id") if theID == id then return p end end end return false end
-
addEventHandler("onResourceStart", resourceRoot, function() for i,player in ipairs(getElementsByType("player")) do spawn(player) end end ) local spawnPoints = { {269.67669677734,1954.8450927734,17.640625}, --Hier die ganzen Spawnpunkte {-659.33868408203,881.34112548828,2.0071334838867}, {1117.5902099609,-2013.0979003906,74.4296875}, {-2186.352294921,2416.1042480469,5.1694464683533}, {-904.03948974609,2678.541015625,42.370262145996}, {620.87713623047,810.55700683594,-42.9609375}, {-3836.2275390625,-1493.7301025391,26.885936737061} } function spawn(player) local ranSkin = math.random(123, 125) local x, y, z = unpack(spawnPoints[math.random(#spawnPoints)]) spawnPlayer(player, x, y, z, ranSkin) end addEventHandler("onPlayerJoin", root, function() spawn(source) end ) addEventHandler("onPlayerWasted", root, function() setTimer(spawn, 4100, 1, source) end )
-
here you can change color tocolor(128, 128, 128, 255) re-read this dxDrawText color: the color of the text, a value produced by tocolor or 0xAARRGGBB (AA = alpha, RR = red, GG = green, BB = blue).
-
hi guys, i look for set-up anti hack for my VPS like DDos-protected and firewall something like that, i don't know much about VPS's can someone help me ?
-
i know how change somethings on script on frist time open my own server just read this dxDrawText
-
adf ? are you kidding me ?
-
best information ever , i think this is scamming
-
lol if you want learn database functions look at this Database function groupdb() groupdb = dbConnect("sqlite", "group.db") if (groupdb) then dbExec(groupdb , "CREATE TABLE IF NOT EXIST group ( name TEXT, permission TEXT, accounts TEXT )") outputDebugString("You have seccessfully connected to the group.db") else outputDebugString("You have not connected to the group.db") end end addEventHandler("onResourceStart", getRootElement(), groupdb)
-
try this function changeVariables() local vehicle = getPedOccupiedVehicle(localPlayer) if vehicle then local alpha = getElementAlpha(vehicle) alpha = alpha*math.abs(getTickCount()%1000-500)/500 setElementAlpha(vehicle, alpha) end end addEventHandler("onClientRender",root,changeVariables)
-
use onClientHUDRender
-
you can but its will have lag so much
-
just remove lines 20 to 40 on Playercolors script
-
wrong board: viewforum.php?f=177
-
dude use your mind why BUMP you can go support board
-
YOU GUYS ANY ANSWER ?
-
Guys kidding me ? why my resource deleted ? bcs its his mod ? how its his mod ? any proof ? that resource have long time on community and now want deleted it that bullshit My resource page: https://community.multitheftauto.com/index.php?p= ... ls&id=7022 From: viewtopic.php?f=0&t=45807&p=678733&hilit=7022#p678733
-
wrong board: viewforum.php?f=115
-
In other words, you check if the first character of the code has value 0x1B (use string.byte to convert from string to byte value), and then if the three next values are "Lua". However if the code has also been encrypted, then you need to check for the encrypted byte values instead. The best way is to just check what 4 byte values are placed at the start of code compiled with luac.multitheftauto.com, and then also check the values when using encryption option. You can see the byte values if you open the script file with sublime text or just string.byte the value in mta to output it and use those values. finally that i was answer waiting for, thanks i will try
-
look i make script compile scripts on resources but how i can make it check if script compiled ? understood now ?