-
Posts
21,935 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Castillo
-
Yo no veo nada mas para copiar. De nada.
-
Si te digo que lo copies de nuevo, a vos que te parece que quiero que copies?
-
Copialo de nuevo.
-
That script is not yours, is stolen. Topic locked.
-
Well, the problem is that you are hidding and showing it at the same time. bindKey ( "F4", "down", function ( ) local state = ( not isCursorShowing ( ) ) showCursor ( state ) outputChatBox ( "#ffa500You pressed #ffffffF4 #ffa500and now cursor is #00dd00".. ( state and "ENABLED" or "DISABLED" ) .."!", 255, 255, 255, true ) end )
-
Problem replacing the original helmet model to other object
Castillo replied to Mimimiguel's topic in Scripting
Try doing a DFF check with TXDworkshop. -
marker = createMarker( -968.40002441406, -970.79998779297, 929.29998779297, "corona", 10, 100, 0, 100, 100) Teleport1 = createMarker ( -1253.7431640625, 48.3994140625, 14.13624382019, "cylinder", 1, 0, 0, 255, 255, getRootElement() ) Teleport2 = createMarker ( -1109.8815917969, -1061.7355957031, 929.35534667969, "cylinder", 1, 0, 255, 255, 255, getRootElement() ) Teleport3 = createMarker ( -1109.8815917969, -1061.7355957031, 929.35534667969, "cylinder", 1, 0, 255, 255, 255, getRootElement() ) Teleport4 = createMarker ( -1253.7431640625, 48.3994140625, 14.13624382019, "cylinder", 1, 0, 0, 255, 255, getRootElement() ) function MarkerHit ( hitElement, matchingDimension ) if ( getElementType ( hitElement ) == "player" ) then if ( getPlayerTeam ( hitElement ) and getTeamName ( getPlayerTeam ( hitElement ) ) == "Clan" ) then local vehicle = getPedOccupiedVehicle ( hitElement ) local teleportElement = ( vehicle and vehicle or hitElement ) if ( source == Teleport2 ) then setElementPosition ( teleportElement, -1251.4296875, 46.1748046875, 14.136226654053 ) setElementRotation ( teleportElement, 0, 0, 0 ) elseif ( source == Teleport4 ) then setElementPosition ( teleportElement, -1111.8815917969, -1061.7355957031, 929.35534667969 ) setElementRotation ( teleportElement, 0, 0, 0 ) elseif ( source == marker ) then setElementPosition ( teleportElement, -1259.0999755859, 62.099998474121, 14.10000038147 ) setElementRotation ( teleportElement, 0, 0, 0 ) end end end end addEventHandler ( "onMarkerHit", root, MarkerHit )
-
De nada.
-
Como que no te deja cargar el recurso?
-
Proba esto: -- server side: function updateNametagWantedLevel ( ) for _, player in ipairs ( getElementsByType ( "player" ) ) do --buscamos en todos los players conectados en el server local PlayerBuscado = getPlayerWantedLevel ( player ) --vemos el nivel de busqueda. if ( PlayerBuscado >= 1 ) then triggerClientEvent ( root, "ponemosblips", root, player ) else --triggerClientEvent ( root, "borramosblips", root, player ) end end end setTimer ( updateNametagWantedLevel, 1000, 0 ) -- client side: function ponemosblips ( Player ) if ( getElementData ( localPlayer, "faction" ) == "Policias" ) then if ( not PlayerBuscados [ Player ] ) then vic [ Player ] = Player PlayerBuscados [ Player ] = createBlipAttachedTo ( Player, 20 ) end end end addEvent ( "ponemosblips", true ) addEventHandler ( "ponemosblips", root, ponemosblips )
-
Teleport1 = createMarker ( -1253.7431640625, 48.3994140625, 14.13624382019, "cylinder", 1, 0, 0, 255, 255, getRootElement() ) Teleport2 = createMarker ( -1109.8815917969, -1061.7355957031, 929.35534667969, "cylinder", 1, 0, 255, 255, 255, getRootElement() ) Teleport3 = createMarker ( -1109.8815917969, -1061.7355957031, 929.35534667969, "cylinder", 1, 0, 255, 255, 255, getRootElement() ) Teleport4 = createMarker ( -1253.7431640625, 48.3994140625, 14.13624382019, "cylinder", 1, 0, 0, 255, 255, getRootElement() ) function MarkerHit ( hitElement, matchingDimension ) if ( getElementType ( hitElement ) == "player" ) then if ( getPlayerTeam ( hitElement ) and getTeamName ( getPlayerTeam ( hitElement ) ) == "Clan" ) then if ( source == Teleport2 ) then setElementPosition ( hitElement, -1257.7431640625, 48.3994140625, 14.13624382019 ) elseif ( source == Teleport4 ) then setElementPosition ( hitElement, -1111.8815917969, -1061.7355957031, 929.35534667969 ) end end end end addEventHandler ( "onMarkerHit", root, MarkerHit ) Probalo.
-
That's strange, because my check and his does the same thing. P.S: There's no reason to delete the topic.
-
Set the spawn method at meta.xml to only spawnpoints, then create one.
-
WHATS WRONG IN THIS SCRIPT? SAVING CARS/INTERIORS/DIMENSIONS
Castillo replied to HeavyMetal's topic in Scripting
So, maybe is not saving the dimension/interior? -
Lo que estas haciendo en tu script es ver si el jugador que tiene estrellas es policia.
-
"faction" es un string?
-
Supongo que "lawTeams" esta definido en alguna parte?
-
function rangedChat ( message, messageType ) local r, g, b = getPlayerNametagColor ( source ) local accountName = getAccountName ( getPlayerAccount ( source ) ) local playerName = getPlayerName ( source ) local global = string.find ( message, "#", 1, true ) if ( messageType == 0 ) then -- If it's normal chat (i.e. not PM or team) if ( global ) then local message = string.gsub ( message, "#", "", 1 ) if ( isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Moderator" ) ) ) then outputChatBox ( "[PUBLIC]#FF0000[#FF0000[PDz]~Mod#FF0000]#FF0000 ".. playerName ..": ".. message, root, r, g, b, true ) elseif ( isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "SuperModerator" ) ) ) then outputChatBox ( "[PUBLIC]#FF0000[#FF0000[PDz]~SMod#FF0000]#FF0000 ".. playerName ..": ".. message, root, r, g, b, true ) elseif ( isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Admin" ) ) ) then outputChatBox ("[PUBLIC]#000000[#000000[PDz]~Admin#000000]#000000 ".. playerName ..": ".. message, root, r, g, b, true ) else outputChatBox ( "[PUBLIC] ".. playerName ..": ".. message, root, r, g, b, true ) end cancelEvent ( ) end elseif ( messageType == 2 ) then -- If it's team chat local playerTeam = getPlayerTeam ( source ) -- Find what team the player is local teamMates = getPlayersInTeam ( playerTeam ) -- Find his team mates for _, teamMate in ipairs ( teamMates ) do -- For each of his team mates, do this: outputChatBox ( "[RADIO] ".. playerName .." dice: ".. message, teamMate, r, g, b, true ) end cancelEvent ( ) end end addEventHandler ( "onPlayerChat", root, rangedChat )
-
Eso es porque estas enviando el nivel de busqueda, no el elemento del jugador: "PlayerBuscado", tendrias que enviar: "player".
-
Modifications: https://community.multitheftauto.com/ind ... ls&id=6456 https://community.multitheftauto.com/ind ... ls&id=6457 DONE
-
WHATS WRONG IN THIS SCRIPT? SAVING CARS/INTERIORS/DIMENSIONS
Castillo replied to HeavyMetal's topic in Scripting
No, that isn't the problem. Add this line after setElementInterior: outputChatBox ( v.Interior )