lucascba
Members-
Posts
121 -
Joined
-
Last visited
Everything posted by lucascba
-
but as the gang get the player because it is with getElementData but as would be the line? To explain better what I did with the "Team" of a player not with the gang look: function Funcion (source) playerTeam = getPlayerTeam ( source ) Clann = getTeamFromName ( "TeamName" ) As would be with the gang system? sorry for my bad English
-
Hi,I would like to know how to make a door (gate) which will only be for a group of gang system of castillo. Thank you.
-
Mira yo intente hacer con esto setWeaponProperty Esto es algo de lo que hice: function propSS () setWeaponProperty(24, "pro", "flags", 0x000200) end addEventHandler("onResourceStart",root,propSS) addEventHandler("onPlayerJoin",root,propSS) Pero no me funciona, Porque?
-
good but no way to make that image?
-
Hola comunidad, me gustaria saber como hacer que teniendo la deagle no te puedas agachar, yo se que es con setWeaponProperty y poniedo el flag en arma pesada pero no me funciona
-
Hola, me gustaria saber como puedo usar este resource, no lo pude hacer funcionar :l. Resource: https://community.multitheftauto.com/index.php?p= ... ls&id=6919
-
I mean this, combokill add to the resource of killsmensage: Ej:
-
Hello, I would like to know how guiComboBoxGetItemText added a resource of killmensages. I explained a little more, than when a player kills 2 segidos players in the kill message is put a (x2) PS: sorry for my bad English
-
Funciono Gracias.
-
Sigue haciendo el mismo daño :c
-
thanks helped me with my problem.
-
worked for me thanks, but as I do to put it in another resource, for example a Job?
-
does not work, look here let the entire script of how I'm doing: addEventHandler ("onResourceStart",getResourceRootElement(getThisResource()), function() local allGreenzones = getElementsByType ("radararea") for i,v in ipairs (allGreenzones) do local r,g,b,a = getRadarAreaColor (v) if (r == 0) and (g == 255) and (b == 0) and (a == 127) then local x,y = getElementPosition (v) local sx,sy = getRadarAreaSize (v) local col = createColCuboid (x,y, -50, sx,sy, 7500) setElementID (col, "greenzoneColshape") end end end) addEventHandler ("onColShapeHit", getRootElement(), function(hitElement, matchingDimension) if (isElement(hitElement)) and (getElementType (hitElement) == "player") and (getElementID (source) == "greenzoneColshape") then exports.notifications:showBox("info","ZonaProtegida") toggleControl (hitElement, "fire", false) toggleControl (hitElement, "next_weapon", true) toggleControl (hitElement, "previous_weapon", true) toggleControl (hitElement, "aim_weapon", false) toggleControl (hitElement, "vehicle_fire", false) showPlayerHudComponent (hitElement, "ammo", false) showPlayerHudComponent (hitElement, "weapon", false) triggerClientEvent (hitElement, "enableGodMode", hitElement) outputDebugString (getPlayerName(hitElement) .. " has entered the greenzone") end end) addEventHandler ("onColShapeLeave", getRootElement(), function(leaveElement, matchingDimension) if (getElementType (leaveElement) == "player") and (getElementID (source) == "greenzoneColshape") then outputChatBox ("Usted salio de la zona Protegida", leaveElement, 255, 0, 0, false) toggleControl (leaveElement, "fire", true) toggleControl (leaveElement, "next_weapon", true) toggleControl (leaveElement, "previous_weapon", true) toggleControl (leaveElement, "aim_weapon", true) toggleControl (leaveElement, "vehicle_fire", true) showPlayerHudComponent (leaveElement, "ammo", true) showPlayerHudComponent (leaveElement, "weapon", true) triggerClientEvent (leaveElement, "disableGodMode", leaveElement) outputDebugString (getPlayerName(leaveElement) .. " has left the greenzone") end end)
-
Hello community, I would like to know how to use the script and tried to notifications for exports ['notifications']: showBox ("info", "test") and does not work, how do I run? this is the resource: https://community.multitheftauto.com/index.php?p= ... ls&id=5812 PD:sorry for my bad English
-
Hola, me gustaria saber como agrego guiComboBoxGetItemText a resource de killmensages
-
Hola a todos, me gustaria saber como hago que un arma en mi server haga menos daño como por ej la minigun hace mucho daño, como hago para que haga menos daño?
-
No entiendo como debo hacer, y para que dse desactiven las armas al entrar?
-
Hola, Me gustaria saber como hacer para cuando un jugador entre a una zona determinada sus armas se desactiven, como puedo hacer eso?
-
mmm yo quiero desactivar el otro, que quede solo el de las zonas como lo ago?
-
Me sale este error: CRIPT ERROR: safezone\safezone.lua:7: 'end' expected (to close 'function' at line 4) near 'else' ERROR: Loading script failed: safezone\safezone.lua:7: 'end' expected (to close 'function' at line 4) near 'else' No entiendo porque sale eso. Aca dejo las lineas: safecol = createColCuboid ( x, y, z, 255, 255, 255 ) -- pones tu posición RadarArea = createRadarArea ( x, y, 100, 100, 255, 0, 0, 10 ) -- pones la misma posición en " x, y, " function EntrarALaZona(hitPlayer,thePlayer) toggleControl (hitPlayer, "aim_weapon", true) outputChatBox("Aqui tu mensaje de Entrada", hitPlayer, 0, 255, 0) else end end addEventHandler( "onColShapeHit", safecol, EntrarALaZona ) function SalirDeLaZona(hitPlayer,thePlayer) toggleControl (hitPlayer, "aim_weapon", false) outputChatBox("Aqui tu mensaje de salida", hitPlayer, 255, 0, 0) end end addEventHandler( "onColShapeLeave", safecol, SalirDeLaZona )
-
Hola, tengo un problema, tengo un resource que te muestra la zona en la que que esbribes: (LS),(LV),(SF) me sale de donde escribo pero el problema es que se pone 2 veces el mensaje. Asi me sale: Me gustaria saber si hay alguna solucion? Este es el codigo: local tab = { [ 'Los Santos' ] = 'LS'; [ 'Las Venturas' ] = 'LV'; [ 'San Fierro' ] = 'SF'; } function chatbox ( text, msgtype ) if ( msgtype == 0 ) then local name = getPlayerName ( source ) local playerX, playerY, playerZ = getElementPosition ( source ) local playerZoneName = getZoneName ( playerX, playerY, playerZ, true ) local playerZoneName = ( tab [ playerZoneName ] or "None" ) local team = getPlayerTeam ( source ) local r, g, b = unpack ( team and { getTeamColor ( team ) } or { getPlayerNametagColor ( source ) } ) for _, player in ipairs ( getElementsByType ( "player" ) ) do local playerX, playerY, playerZ = getElementPosition ( player ) local zoneName = getZoneName ( playerX, playerY, playerZ, true ) local zoneName = ( tab [ zoneName ] or "None" ) if ( zoneName == playerZoneName ) then outputChatBox ( "(".. playerZoneName ..")".. name ..":".. text, player, r, g, b, true ) end end cancelEvent ( ) end end addEventHandler ( "onPlayerChat", root, chatbox ) PD:El resource de zonechats no es mio.