-
Posts
304 -
Joined
-
Last visited
Everything posted by FatalTerror
-
Hi everybody ! Today I would like to introduce my new script. I called "MTA Live Messenger" (MLM). This is one of the few resources that I made free so enjoy! This resource is obviously not finished, I count on you to give me ideas to improve it and make it be a good resource. If you want to help, contact me by PM What is MLM ? MLM means MTA Live Messenger. This is a chat system that allows you to talk with players in any MTA. For example: You are on server A and want to talk to someone who is on server B. With a MLM, you will be able to discuss with that person in real time without problem. No identification required, you will be recognized with your Serial. The messages will go through the site and http://www.mtascripts.net be stored in a database totally safe ! The purpose of MLM is to bring together all players from all servers. How it work ? It's simple, when you are in a server, you can add a player to your friends list. If the player accepts your invitation, you are officially friends. You can only talk to your friends, not to all players! Screens Maked: Great interface Friend list Profile parameters Login alert Animation for the interface Project Page
-
It work... big thanks
-
Hi, I search how detect when the sound are stopped, when the music are finish. Exist ? Thanks
-
You set a text to the same dx... Create an new ._.
-
Why you post the complete race client ? lol
-
Show us your code and if have an error, we fix
-
Like that ? function setHouseData(element, data, value) if element and value then setElementData(element, "house-data-"..data, value) else return false end end function setCarData(element, data, value) if element and value then setElementData(element, "car-data-"..data, value) else return false end end
-
How much you pay ?
-
I think no... You must do a while like that: stopTable = { {1812.65198, -1889.86047, 13.41406}, {1825.22791, -1635.03711, 13.38281}, {1855.01685, -1430.47449, 13.39063}, {1732.81580, -1296.87122, 13.44294}, {1473.19226, -1295.77124, 13.48315}, {1443.60376, -1498.26660, 13.37650}, {1426.37280, -1716.12439, 13.38281}, {1315.06909, -1656.43799, 13.38281}, {1359.06250, -1432.39734, 13.38281}, {1169.82983, -1392.34473, 13.41728}, {930.76508, -1392.92627, 13.26561}, {815.24756, -1317.91345, 13.44460}, {585.04199, -1320.53748, 13.40609}, {526.99365, -1624.20361, 16.63225} } --Create the first marker. I am assuming this is a clientside bus mission? function startBusMission() for i, value in ipairs(stopTable)do local stopMarker[i] = createMarker(unpack(stopTable[i])) setElementData(stopMarker[i], "stopID", 1, false) addEventHandler("onClientMarkerHit", stopMarker[i], stopMarkerHit) end end I think it work
-
Yo, I see in your picture "eF Clan" and i see in your profile "eF Clan" ^^ I think it's your server & your clan. I think too, you have copy these rankingboard and nextmap message. The rankingboard are located in rankingboard.lua & rankingboard_client.lua The nextmap message are located in mods/base.lua function RaceMode.endMap() if stateAllowsPostFinish() then gotoState('PostFinish') local text = g_GameOptions.randommaps and 'Next map starts in:' or 'Vote for next map starts in:' Countdown.create(5, RaceMode.startNextMapSelect, text, 255, 255, 255, 0.6, 2.5 ):start() triggerEvent('onPostFinish', g_Root) end end
-
You have forget "end"... addEventHandler("onPlayerLogin",root, function () local account = getPlayerAccount(source) if isGuestAccount(account) then return end local raceWins = getAccountData(account,"Race Wins") local raceLoses = getAccountData(account,"Race Loses") local timePlayed = getAccountData(account, "Time played") local ratio = getAccountData(account, "Ratio") if raceWins then setAccountData(account,"Race Wins",tostring(raceWins)) else setAccountData(account,"Race Wins",0) if raceLoses then setAccountData(account,"Race Loses",tostring(raceLoses)) else setAccountData(account,"Race Loses",0) if timePlayed then setAccountData ( account, "Time played", tostring(hours) ..":".. tostring(mins) ..":".. tostring(newsec)) else setAccountData(account, "Time played","0:0:0") if ratio then setAccountData(account,"Ratio",tostring(ratio)) else setAccountData(account,"Ratio",0) end end)
-
Just add an other event... onPlayerSpawn
-
Hm ... dxDrawText ("HUNTER ENCONTRADO!", 226.0,637.0,625.0,671.0, tocolor ( 255, 0, 0, 255 ), 1.3, "bankgothic", "center", "top", false )
-
Like this ? (not tested) Client-side: addEvent("onPlayerPickUpRacePickup",true) addEventHandler("onPlayerPickUpRacePickup",getRootElement(), function(number, sort, model) if sort == "vehiclechange" and model == 425 then local thedx = dxDrawText("HUNTER ENCONTRADO!",226.0,637.0,625.0,671.0,"bankgothic","left","top",false,false,false) setTimer(closeTheHunterAlert, 5000, 1) addEventHandler("onClientRender", getRootElement(), showTheHunterAlert) end end) function showTheHunterAlert() dxDrawText("HUNTER ENCONTRADO !",226.0,637.0,625.0,671.0,"bankgothic","left","top",false,false,false) end function closeTheHunterAlert() removeEventHandler("onClientRender", getRootElement(), showTheHunterAlert) end
-
WTF ? Why it's on server side?! Edit: Hm dude... if in the map have multiple hunter pickup I think it will create multiple dxDrawText
-
Okay thanks, we can change this limit?
-
Hi, I want do a big, very big game mode but i want to know if have limit of objects in MTA ? If have one, how to remove it ? Big thanks
-
Return only the number... Try to use gettok function ? string gettok ( string text, int tokenNumber, string / int separatingCharacter ) local myarea = "Area 20" local result = gettok ( myarea, 2, string.byte(' ') )
-
Big thanks
-
I have try, but have so much functions
-
Try that, edit for you script. local radius = 150 local volume = 1.0 local posX, posY, posZ = 251.5, -1890.8000488281, 3.7000000476837 local radioURL = "http://www.true.nl/streams/slamfmlivestream.asx" local thisRoot = getResourceRootElement(getThisResource()) addEventHandler("onClientResourceStart", thisRoot, function() radio = playSound3D(radioURL, posX, posY, posZ, false) setSoundVolume(radio, volume) setSoundMaxDistance(radio, radius) end) addEventHandler("onClientRender", getRootElement(), function() local x, y, z = getElementPosition(getLocalPlayer()) if x and y and z then local distance = getDistanceBetweenPoints3D(x, y, z, posX, posY, posZ) if distance >= radius then outputChatBox("You have left the song area !") end end end)
-
The same thing ^^ Edit: no
-
Not necessarily... Are you sure "player" have an value ? Test the value if player then setTimer(wafflecheese, 1000, 1, player) else outputChatBox("No value") end
-
Like this ? local team = getPlayerTeam(source) if team then local police = getTeamFromName("police") if (team == police)then -- He is Police Team end else -- He is not in any team end