-
Posts
1,027 -
Joined
-
Last visited
Everything posted by BorderLine
-
1: function sendMessageToTeamPlayers ( message, messageType ) if ( messageType == 2 ) then team = getPlayerTeam(source) if (team) then r, g, b = getTeamColor( team ) end local tplayers = getPlayersInTeam ( team ) for index, tplayers in ipairs( tplayers ) do outputChatBox( "[RADIO]"..getPlayerName ( source )..":#ffffff ".. message, tplayers, r, g, b, true ) end cancelEvent ( ) end end addEventHandler ( "onPlayerChat", getRootElement(), sendMessageToTeamPlayers ) 2: if getElementModel(source) ~= 25 then....
-
Thanks.. i forgot that functions
-
Hi everyone. I have a question What function i can use to avoid change weapon of a player? I mean, i have a chainsaw, m4, colt and a shotgun I want make to when im enter to some zone, just i can use chainsaw, and dont change my weapon to m4 or colt or shotgun What functions i can use? Thanks for your time
-
viewtopic.php?f=122&t=59515
-
¿Como Puedo Crear Una cantidad De Zombies con un comando?
BorderLine replied to StanMarsh's topic in Scripting
PVI: https://wiki.multitheftauto.com/wiki/Slothman/Zombies -
Thxanks a loot. Idk why that isnt work when i did .. jaja Well and the last question. I have friendly fire. Buf if i want use spray on a player of my own team, isnt work, i supposed is a fridly fire problem. How to do to make same effect to all?
-
Hi everyone, i have a little problem Well, i was making a cure for my zombie infecction. the problem is, when the players have 70 of infection, then im use spray and reduce his infection. But, when im still spraying, he has - 10 - 20 then can be -1000 or more if im still use spray on him How to check when his infection is on 0 then no low more his infection. my code local localPlayer = getLocalPlayer() function spray ( attacker, weapon, bodypart ) cuInf = getElementData (source, "infeccion") if ( attacker ) then if ( getElementType ( attacker ) == "player" ) then if ( weapon == 41 ) then if getElementData(source,"infeccion") <= 99 then cancelEvent() setElementData (source, "infeccion", cuInf - 2) end end end end end addEventHandler ( "onClientPlayerDamage", localPlayer, spray) Thanks for your time
-
depende que sistema para tu grupo estes usando gang_system, acl, team, elementdata etc.. Si usas gang_system puedes usar las funciones de el mismo script aca detalladas https://community.multitheftauto.com/index.php?p= ... ls&id=1514 Acl. https://wiki.multitheftauto.com/wiki/IsObjectInACLGroup teams https://wiki.multitheftauto.com/wiki/GetPlayerTeam y https://wiki.multitheftauto.com/wiki/GetTeamName y a todo esto claro https://wiki.multitheftauto.com/wiki/CreateObject para crear la puerta y https://wiki.multitheftauto.com/wiki/MoveObject para moverlo de un lado hacia a otro y usa https://wiki.multitheftauto.com/wiki/CreateMarker para crear un marker cerca de la puerta y asi poder detectar si el jugador esta en tu grupo o no y con eventos https://wiki.multitheftauto.com/wiki/OnMarkerHit para detectar y https://wiki.multitheftauto.com/wiki/OnMarkerLeave para cerrar la puerta mas claro donde
-
Evita el CUATRUPLEPOST y usa el boton EDIT. Lo del nextmap, busca en el foro.. hay al menos 1000 posteos sobre ese tema....
-
Tambien agregar que no solo debes "decir que el script no funciona". Pone mas detalles, tales como errores en el debug, o decir que es lo que especificamente no funciona. No sirve de nada postear 40 lineas de codigo si no especificas.
-
despues del argumento del color viene el tamaño. en ese caso en tus argumentos es 0.6.. ponele 0.7 o mas
-
riiiiight.. i forgot thaaaaaat.!!!!!! im gonna try now.. thxnks
-
that isnt the problem. the problem are triggers, elementdata just are for colours, i can change that.
-
hi everyone. I have a problems with triggers. I have this code to make "nitro mod color", but i did in client side, but only i see my own effect, but i didnt see the others players. Then a make this to trigger to serverside. If anyone can helpme PD: THIS MOD WILL BE UPLOAD TO COMUNITY TO AVOID THEFTS Thanks ClientSide function startClient () addEventHandler("onClientRender", getRootElement(), Nos) end addEvent("nitrON",true) addEventHandler("NitrON",getRootElement(),startClient) function startClient2 () removeEventHandler("onClientRender", getRootElement(), Nos) end addEvent("nitrOFF",true) addEventHandler("NitrOFF",getRootElement(),startClient2) function Nos () ntcr = getElementData ( getLocalPlayer(), "NNR" ) ntcg = getElementData ( getLocalPlayer(), "NNG" ) ntcb = getElementData ( getLocalPlayer(), "NNB" ) local theVehicle = getPedOccupiedVehicle ( getLocalPlayer() ) local x, y, z = getElementPosition(theVehicle) fxAddGlass(x,y,z,ntcr,ntcg,ntcb,100,0.15,7.5) end ServerSide function nitroon() triggerClientEvent( "NitrON", getRootElement(),getRootElement()) end bindKey("mouse1","down",nitroon) bindKey("lctrl", "down", nitroon) bindKey("rctrl", "down", nitroon) function nitrooff() triggerClientEvent( "NitrOFF", getRootElement(),getRootElement() ) end bindKey("mouse1","up",nitrooff) bindKey("lctrl", "up",nitrooff) bindKey("rctrl", "up",nitrooff)
-
si quieres especificar te viene bien el script de Renkon Si quieres para todos iguales toma el script de la comunidad, pero este esta algo arreglado function friendly() local allTeams = getElementsByType ( "team" ) for index, theTeam in ipairs(allTeams) do setTeamFriendlyFire ( theTeam, false ) end end addEventHandler("onResourceStart",getRootElement(),friendly)
-
estas seguro que a los createTeam les designaste esa variable?
-
Si llamas a una función como una ya existente y utilizas la ya existente dentro de la creada, ¿No habría algún error? Despues de que postie me di cuenta que llame al evento de la misma manera. Sabia de posibles errores pero no exactamente porq. Gracias por la acotacion
-
EDIT: i found another way. So now is working.. Thanks for your help solid
-
Thanks. Now i got this. But isnt work function upgrade(player) local account = getPlayerAccount ( player ) if not isGuestAccount(account) and getAccountName(account) == "yakuza" then addVehicleUpgrade( source , 1080) end end addEventHandler("onVehicleEnter", resourceRoot, upgrade) addEventHandler("onElementModelChange", resourceRoot, upgrade) Same error, when i change model dont keep the wheels
-
Hi again. Well i have another problem. I have this function upgrade() local cuVehicle = getPedOccupiedVehicle(source) local account = getPlayerAccount ( source ) if not isGuestAccount(account) and getAccountName(account) == "x" then setTimer(addVehicleUpgrade, 1000, 1, cuVehicle, 1080 ) end end addEventHandler("onMapStarting", getRootElement(), upgrade) addEventHandler("onPlayerVehicleEnter", getRootElement(), upgrade) addEventHandler("onElementModelChange", getRootElement(), upgrade) The problem is. in Race gamemode, when i change vehicle, my wheels change to default. I want have ever my wheels. But idk how fix it. Thanks for your time
-
thanks a lot working now!
-
Just one problem. If i get any vehicle change, infernus, or whatever. giveme a 1 hunter
-
Hi everyone. I have a problem with this resource for DM/DD The problem is, when i pick up a vehiclechange to hunter, that will give me +1 in the count. But, if in the place of hunter vehicle change, there are mor than 1 pick up, and i if get 3 pickups at same time, the count will give me +3 I need change the event? or add another code?? Thanks function someoneReachedHunter(number, sort, model) if sort == "vehiclechange" and model == 425 then givePlayerMoney ( source, 1000 ) top = getElementData(source,"Hunters") or 0 setElementData(source,"Hunters",top+1) end end addEvent("onPlayerPickUpRacePickup",true) addEventHandler("onPlayerPickUpRacePickup",getRootElement(),someoneReachedHunter)
-
function createTeam(source, command, tName, r, g, b) createTeam(tName, r, g , b) end addCommandHandler("team",createTeam) Ejemplo /team eldelahoz 255 0 0 Nose si esta 100% bien. Si esta bien nomas ponele unas restricciones de admin y listo
-
Problema con Los Kills y Deaths
BorderLine replied to ArciHack's topic in Ayuda relacionada al cliente/servidor
No hay de que man cuando gustes. un abrazo
