-
Posts
1,027 -
Joined
-
Last visited
Everything posted by BorderLine
-
It has nothing to do and also the event was server-side so it has nothing to do with client-side anyway. i know that, what i mean that can be complicated to guys who are learning lua. can confuse they
-
i think its a bad idea call the fuction like some event native from MTA
-
i didnt know about that.. well no more off topic.. thanks Solidsnake14 and TAPL
-
can you explain me those diference? i dont know much about that. if you can do thanks
-
client function replace() outputChatBox ( "> replacing the euros vehicle" ) txd = engineLoadTXD ( "data/euros.txd" ) engineImportTXD ( txd, 587 ) dff = engineLoadDFF ( "data/euros.dff", 587 ) engineReplaceModel ( dff, 587 ) end addEventHandler("onClientResourceStart",getRootElement(),replace) meta.xml
-
you want delete killsmessages or deathlist from race resource? killmessages are in the right of screen and deathlist show times and positions in the left of the screen
-
Cool. Thanks for your time guys
-
Hi everyone Well i have a qustion. How i can edit a ACL gropus For example Mods and smods cant set Money then i need change acces to false, right? Now, this is only to command? if i want disable the setMoney button in admin panel, How i can do? something like this? I need a little help. Please
-
Hi everyone, Im here to present a map of my friend. Is his IV version so good and bad commets are welcome Thanks to ElCrowMvs to the amazing video. Visit CoB Clan Server Made in Chile Enjoi It
-
Como dice plate, los servers traen por default scripts y uno de esos es Playerblips. Que crea blips acordes al color del team y de destruyen cuando los jugadores mueren o se desconectan.
-
si este es un foro en español supongo que deberian usar palabras en español. me parece que debes usar setElementData(source,"zombie") aunque no estoy seguro de los argumentos del setelement y onClientPlayerDamage y con settimers supongo, para que valla bajando el health poc a poco
-
Tù solo pusiste la funcion . Yo le explique. De todos modos tu explicacion estubo demas. El pregunto que funcion usar y solid le respondio Pasando al tema Explicarlo seria algo claro como money = getPlayerMoney(localPlayer) if money => (costo del arma) then triggerServerEvent( .. ) -- aca nesesitaras crear la funcion desde el servidor para darle el arma y quitarle el dinero del costo else outputChatBox("No tienes suficiente dinero",255,0,0) end Solo hice el script a la rapida, no recuerdo bien los argumentos. Si hay errores que algien me corrija aaah!! Y tambien agregar. Si vas a crear el panel para usar el takePlayerMoney usalo desde serverside usando un trigger. Ya que usandolo desde clientside se bugea despues si vuelves a ganar dinero.
-
createProjecticle no tiene la funcion para balas de ese calibre. Solo granadas o misiles
-
REPORT COMMUNITY CENTER RESOURCES HERE
BorderLine replied to SATAN's topic in General MTA discussion
https://community.multitheftauto.com/index.php?p= ... ls&id=5243 vehicle mod and skin mod -
Thanks very much guys.. All work. Thanks for your time
-
type /debugscript 3 and tell us what happen.. and why you say nothing and make sure to add in meta like server side
-
function warp() setElementPosition ( source, 0, 0, 0 ) -- add argument eelement= source setElementFrozen ( source, true ) end addCommandHandler ( "warp", warp )
-
Hi everyone. well i have a little problem. Check i have a buymap panel, but i have a little problem. All can buy maps, and all work perfect but the problem is. If some player with mod, smod or admin rights buy map, then the nextmap is the map bought. But if some user without admin panel acces buy the map, but on the nextmap dont go to that map bought. serverside function buyMap(thePlayer,mapName) local playerCash = getPlayerMoney( thePlayer ) if mapIsAlreadySet == false then if not (mapName == "") then if playerCash >= mapCost then executeCommandHandler("nextmap", thePlayer, mapName) takePlayerMoney ( thePlayer, 5000 ) mapIsAlreadySet = true outputChatBox ("#FF6600* Next map set from #ABCDEF"..getPlayerName(thePlayer).." #FFFFFF[ "..mapName.." ]",getRootElement(),0,0,0,true) else outputChatBox("#FF0000* #FFFFFFYou don't have enough money to set a map!",thePlayer,255,255,255,true) end else outputChatBox("#FF0000* #FFFFFFPlease select a map from the list first!",thePlayer,255,255,255,true) end else outputChatBox("#FF0000* #FFFFFFA map is already #ff0000set #ffffffat the moment! Please try again later.",thePlayer,255,255,255,true) end end i give to this panel admin rights in comunity. Can be thaths the problem?
-
creo que el [uVA] es uno de los mejores, pero hace algun tiempo atras lo vi en otra version antigua de MTA. nose si ayan actualizado, quisas deberas instalar la version vieja
-
function buyMap(thePlayer,mapName) local playerCash = tonumber(loadPlayerData(thePlayer,"cash")) if mapIsAlreadySet == false then if not (mapName == "") then if playerCash >= mapCost then executeCommandHandler("nextmap",thePlayer,mapName) else outputChatBox("#0095FF* #FFFFFFYou don't have enough money to set a map!",thePlayer,255,255,255,true) end else outputChatBox("#0095FF* #FFFFFFPlease select a map from the list first!",thePlayer,255,255,255,true) end else outputChatBox("#0095FF* #FFFFFFA map is already set at the moment! Please try again later.",thePlayer,255,255,255,true) end end function resetMapSetStatus() mapIsAlreadySet = false end addEventHandler("onMapStarting",getRootElement(),resetMapSetStatus) addEvent("onScriptSetNextMap",true) addEventHandler("onScriptSetNextMap",getRootElement(), function (mapName) thePlayer = source local playerCash = tonumber(loadPlayerData(thePlayer,"cash")) savePlayerData(thePlayer,"cash",playerCash-mapCost) outputChatBox("#FFFFFFNextmap: "..getPlayerName(thePlayer).."#FFFFFF has bought a next map!",getRootElement(),255,255,255,true) outputChatBox("#FFFFFFNextmap: #FF8800"..mapName,getRootElement(),255,255,255,true) mapIsAlreadySet = true scoreboardRefresh(thePlayer) end) addEvent("onRaceSetNextMap",true) addEventHandler("onRaceSetNextMap",getRootElement(), function () mapIsAlreadySet = true end) me parece ke debes darle derechos de admin al resource
-
borra el client side y todo el server side reemplazalo por esto function respawnVehicles() outputChatBox("*Empty vehicles will be respawned in 10 seconds.", root, 255, 255, 0) setTimer(function () local vehicles = getElementsByType ( "vehicle" ) outputChatBox("*Empty Vehicles has been respawned.", root, 0, 220, 20, true) for k, vehicle in ipairs ( vehicles ) do if isEmpty( vehicle ) then respawnVehicle ( vehicle ) end end end, 10000, 1) end setTimer(respawnVehicles, 180000, 0)-- edita el tiempo de diferencia entre cada respawn. Suerte function isEmpty( vehicle ) local passengers = getVehicleMaxPassengers( vehicle ) if (type( passengers ) == 'number') then for seat = 0, passengers do if getVehicleOccupant( vehicle, seat ) then return false end end end return true end
-
este es el viejo panel de tg, hay bastantes topics con respecto a este tema, busca algo parecido por el foro
-
asi es solid, debes configurar dicho archivo para que el client del race soporte fuentes inportadas
-
That is easy, learn lua and maybe you gonna make that