-
Posts
137 -
Joined
-
Last visited
Everything posted by killeryoyo
-
Work perfect thanks but i want add color in [local] like Ex : #FF0000[Local] "..name.." but when i do it nameplayer too has taked the color ( red #FF0000 ) outputChatBox("[Local] "..name..": #ffffff"..message, getRootElement(), r, g, b, true) check this out again maybe the wrong is there
-
function globalMessage(thePlayer, cmd, ...) local message = table.concat ( { ... }, " " ) local name = getPlayerName(thePlayer) local r,g,b = getPlayerNametagColor ( thePlayer ) -- add outputChatBox("[Local] "..name..": #ffffff"..message, getRootElement(), r, g, b, true) end addCommandHandler("Local", globalMessage) try this maybe it can work
-
Hello guys, Any idea how to install that nitro thing in that topic? https://forum.multitheftauto.com/viewtopic.php?f=140&t=42586 i tried with ImportTXD and those things, but it didnt work or i don't how to use it. Can anyone help? D:
-
well better than trying to post its finished. Try at least to update the gamemode by adding more things Like a Race Userpanel or a better hud for racing etc. Try improving the gamemode.
-
Well maybe we can start by editing the mta sa Race Game mode and making it better well maybe second Thing is to make a Toptimes Table. Well maybe third thing is to post some maps. Enough for you. You can complete with your own.
-
Hello Guys, I was asking why the spectator arrows aren't working and the spectator is working. local dxSpec = { label = ""} function Spectate._start() outputDebug( 'SPECTATE', 'Spectate._start ' ) triggerServerEvent('onClientNotifySpectate', g_Me, true ) assert(not Spectate.active, "Spectate._start - not Spectate.active") local screenWidth, screenHeight = guiGetScreenSize() --g_GUI.specprev = guiCreateStaticImage(screenWidth/2 - 100 - 58, screenHeight - 123, 58, 82, 'img/specprev.png', true, nil) --g_GUI.specprevhi = guiCreateStaticImage(screenWidth/2 - 100 - 58, screenHeight - 123, 58, 82, 'img/specprev_hi.png', true, nil) --g_GUI.specnext = guiCreateStaticImage(screenWidth/2 + 100, screenHeight - 123, 58, 82, 'img/specnext.png', true, nil) --g_GUI.specnexthi = guiCreateStaticImage(screenWidth/2 + 100, screenHeight - 123, 58, 82, 'img/specnext_hi.png', true, nil) --g_GUI.speclabel = guiCreateLabel(screenWidth/2 - 100, screenHeight - 100, 200, 70, '', true) Spectate.updateGuiFadedOut() --guiLabelSetHorizontalAlign(g_GUI.speclabel, 'center') hideGUIComponents(--[['specprevhi', 'specnexthi']]) if Spectate.savePos then savePosition() end Spectate.setTarget( Spectate.findNewTarget(g_Me,1) ) bindKey('arrow_l', 'down', previousBind) bindKey('arrow_r', 'down', nextBind) MovePlayerAway.start() Spectate.setTarget( Spectate.target ) Spectate.validateTarget(Spectate.target) Spectate.tickTimer:setTimer( Spectate.tick, 500, 0 ) addEventHandler("onClientRender",getRootElement(),showDxSpeact) end function showDxSpeact() if getElementData(localPlayer,"loginEnabled") then return end local screenWidth, screenHeight = guiGetScreenSize() dxDrawText(dxSpec.label:gsub("%#%x%x%x%x%x%x",""),screenWidth/2+2*scale,screenHeight - 100-2*scale,screenWidth/2,screenHeight - 30,tocolor(0,0,0,255),0.4,newRace.font,"center","center",false,false,false,true,true) dxDrawText(dxSpec.label,screenWidth/2,screenHeight - 100,screenWidth/2,screenHeight - 30,tocolor(255,255,255,255),0.4,newRace.font,"center","center",false,false,false,true,true) end -- Stop spectating. Will restore position if Spectate.savePos is set function Spectate._stop() Spectate.cancelDropCamera() Spectate.tickTimer:killTimer() triggerServerEvent('onClientNotifySpectate', g_Me, false ) outputDebug( 'SPECTATE', 'Spectate._stop ' ) assert(Spectate.active, "Spectate._stop - Spectate.active") for i,name in ipairs({--[['specprev', 'specprevhi', 'specnext', 'specnexthi']]--[[, 'speclabel']]}) do if g_GUI[name] then destroyElement(g_GUI[name]) g_GUI[name] = nil end Thank you for helping.
-
never mind fixed with the hoster
-
Hello guys, While i was trying to change my server name. Something happened. The server Stopped and it gave me this error [09:46:17] ERROR: Error parsing mtaserver.conf - Line 0: Error reading Element v alue. [09:46:17] Server stopped! Press Q to shut down the server! here is the mtasa.conf <config> <!-- This parameter specifies the name the server will be visible as in the ingame server browser and on Game-Monitor. It is a required parameter. --> <servername>Limitless DM Racing Server|DM-FUN-DD-ClanWars|LRPG:RPG</servername> <!-- ONLY USE THIS PARAMETER IF YOU ARE SURE OF WHAT YOU ARE DOING - it is generally only needed for professional servers and should be left blank otherwise. This parameter specifies the IP to use for servers that have multiple IP addresses. If left blank, it will default to server's standard local IP address. --> <!-- SERVERIP SHOULD BE LEFT BLANK UNLESS YOU ARE SURE OF WHAT YOU ARE DOING --> <serverip></serverip> <!-- WARNING: SETTING serverip AND THEN ASKING FOR SUPPORT CAN CAUSE DEATH OR INJURY --> <!-- This parameter specifies the UDP port on which the server will be accepting incoming player connections; default value: 22003. It is a required parameter. --> <serverport>22003</serverport> <!-- This parameter specifies the number of maximum player slots available on the server; default value: 32. It is a required parameter. --> <maxplayers>32</maxplayers> <!-- This parameter specifies the TCP port on which the server will be accepting incoming http connections. It can be set to the same value as <serverport>. It is a required parameter if <httpserver> is set to 1. --> <httpport>22005</httpport> <!-- If set, this parameter specifies the external URL from which clients will be able to download needed resources ingame. If not set (or the external URL files are incorrect), resource downloads are switched to the internal http server. --> <httpdownloadurl></httpdownloadurl> please help
-
Hello guys, I have a problem in Connecting to some servers. In any normal server i can join normally and play. But when i bought my own server linux. I keep timing out every 10 secs. Any help about that?
-
Hello guys while i was searching in the servers i found something weird i saw a server that was hacked in the moment. I was very sorry for the owners. But i wanted to do the right and i want to report them here is a screenshot if you can reach them MTA team and ban them will be good! The hacker names are Ajax Crossfire another guy idk.
-
Username (In control panel): killeryoyo Full Name: Youssef el Marakshy Skype: youssef.best2 Email: [email protected] Server Slot: 80 if you can Reason that you want a free MTASA Server: I always wanted and dreamed to have the oppurtunity to make a Racing server suprise for my friend and role it .
-
Still its not working and there is no errors and no need to view all the script because its already working except that place
-
so let him post with himself not you.
-
when the script enters the server and runs. It becomes bigger in size. Not because they are 33 mb so they wont be bigger. There is scripts that are 2kb in size but when u put it and loads. it be 30 kb, so there is a difference in size.
-
still the both didnt work idk whats wrong. i see all is good only the text is working... and no errors
-
hello guys local alcoholLevels = {["Beer"]=10,["Cider"]=5,["Vodka"]=60,["Wine"]=20,["Whisky"]=50} function purchaseDrink(item,price) local money = getPlayerMoney(localPlayer) if money >= tonumber(price) then outputChatBox("* You bought some "..item.." for $"..price..".",255,255,0) takePlayerMoney(thePlayer,price) local sigarette = createObject ( 1485, 0, 0, 0 ) cigarettes[thePlayer] = sigarette exports.bone_attach:attachElementToBone(sigarette,thePlayer,11,0.15,0.1,0.15,0,180,30) outputChatBox("* You drink some "..item..".",0,255,0) setElementData(localPlayer,"drunk",(getElementData(localPlayer,"drunk") or 0)+(alcoholLevels[item]/100),false) else there is something wrong here. It doesnt take money from the player and it doesnt create the object at least. Can someone help?
-
I think something called FiveM. It will be something like MTA but in gta V it will have scripting devolping and etc. they are still working on it
-
it works man i tried it, maybe you can't put it right or you change something or you dont copy full code.
-
Hello guys, I was trying to fix a script, but there is something weird in the script idk why it doesnt work. function startHijackTable() random = math.random(#hijackT) model = math.random (#hijackCar) x, y, z, rx, ry, rz = hijackT[random][1], hijackT[random][2], hijackT[random][3], hijackT[random][4], hijackT[random][5], hijackT[random][6] hijackStart = createVehicle ( hijackCar[model][1], x,y,z,rx,ry,rz ) setVehicleDamageProof ( hijackStart, true ) x1, y1, z1 = getElementPosition ( hijackStart ) hijackBlip1 = createBlipAttachedTo (hijackStart, 53) setBlipVisibleDistance ( hijackBlip1, 1500 ) outputChatBox ( "A customer wants the "..getVehicleName( hijackStart ).." at "..getZoneName(x1, y1, z1).."! Go to the race flag before anyone else!", root, 200, 255, 100, true ) end setTimer(startHijackTable, 50, 1) function enterHijack(hijacker, seat, jacked) if source == hijackStart then hx, hy, hz = hijackDT[deliverH][1], hijackDT[deliverH][2], hijackDT[deliverH][3] px, py, pz = getElementPosition ( hijacker ) if (getDistanceBetweenPoints2D ( px, py, hx, hy)) <= 550 then enterHijack(hijacker, seat, jacked) return end deliverH = math.random(#hijackDT) hijackDeliver1 = createMarker ( hx, hy, hz, "cylinder", 4.0, 250, 50,0, 150) hijackBlip2 = createBlipAttachedTo ( hijackDeliver1, 51 ) setVehicleDamageProof ( hijackStart, false ) setElementVisibleTo ( hijackBlip, root, false ) setElementVisibleTo ( hijackBlip, hijacker, true ) setElementVisibleTo ( hijackDeliver1, root, false ) setElementVisibleTo ( hijackDeliver1, hijacker, true ) outputChatBox("Deliver the car to the customer in "..getZoneName(hx, hy, hz).."", hijacker, 52, 134, 196, false) end end When i enter the car. The Marker blip doesnt show in the map. Can someone help me? thank you!
-
if (account == false) then exports['NGSQL']:createAccount ( username ); exports['SAEGJobs']:addPlayerToJobDatabase ( source ) exports.SAEGPlayerFunctions:setTeam(source,"Unemployed") I think the problem here because you made if the Account = False then it will export you to Unemployed or you want what? There is OnPlayerLogin , but not register
-
That Open source scripts helped us so much. Thank you without you we were going to fall down . I wish you could do more updates and news things! Keep it up good job
-
[DM] Ernesto ft. DonXTone & Impzy - Revolutionary Speedmap
killeryoyo replied to Impzy's topic in Showroom
nice map -
I want to know the function that can make player's camera be like drunk. Anyone can tell me?
-
Hello guys, I wanted to make a bar script that you can be drunk in it and have a the object attached to you, can anyone give me a brief about the functions i can use to start the script? because idk how to start thank you!
-
The script came back working, but the command from removing the Spike isnt working. I tried to replace destroyElement ( spike ) with destroyElement ( local spike ) but didnt work and i tried. to add addCommandHandler("tale", spike but it gave me a alot of end errors.
