-
Posts
611 -
Joined
-
Last visited
Everything posted by AlvareZ_
-
Mira lo que debes usar para ese panel, Intenta crearlo por ti mismo deberas triggear algunas cosas, Si tienes alguna duda postealo te ayudare. getPlayerName -- Toma el nombre de el Jugador getPlayerAccount -- Toma la cuenta del Jugador getPlayerMoney -- Dinero del Jugador getPlayerIP -- IP Del jugador getPlayerPing -- Ping del Jugador getPlayerTeam -- Grupo de el jugador getPlayerSkin -- Skin del Jugador -- Es cuestión de definirlo y luego usar el nombre que le diste y cambiar la label con: guiSetText -- Para los botones kickPlayer -- Saca a el jugador de el Server setPedFrozen -- Congela a el jugador setPlayerMuted -- Mutea a el jugador o desmutea setElementPosition -- Para warpear y traer killPed -- Matarlo y creo que para spectatearlo: setCameraTarget -- Adicional triggerServerEvent triggerClientEvent outputChatBox
-
ÑO, solo le agregue un ouput
-
Te recuerdo que eso no lo cree yo
-
function viewAdmin(source) local lv1 = {} local lv2 = {} local lv3 = {} local lv4 = {} for i,v in ipairs(getElementsByType("player")) do local accV = getPlayerAccount(v) local accName = getAccountName(accV) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Level 4" ) ) then table.insert(lv4, getPlayerName(v)) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "Level 3" ) ) then table.insert(lv3, getPlayerName(v)) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "Level 2" ) ) then table.insert(lv2, getPlayerName(v)) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "Level 1" ) ) then table.insert(lv1, getPlayerName(v)) end end outputChatBox("Admins Online:", source, 0, 255, 0) if #lv1 ~= 0 then outputChatBox("Level 1: "..table.concat(lv1, ", "), source, 0, 255, 0) else outputChatBox("Level 1: Ninguno", source, 0, 255, 0) end if #lv2 ~= 0 then outputChatBox("Level 2: "..table.concat(lv2, ", "), source, 0, 255, 0) else outputChatBox("Level 2: Ninguno", source, 0, 255, 0) end if #lv3 ~= 0 then outputChatBox("Level 3: "..table.concat(lv3, ", "), source, 0, 255, 0) else outputChatBox("Level 3: Ninguno", source, 0, 255, 0) end if #lv4 ~= 0 then outputChatBox("Level 4: "..table.concat(lv4, ", "), source, 0, 255, 0) else outputChatBox("Level 4: Ninguno", source, 0, 255, 0) end end addCommandHandler("admins", viewAdmin)
-
https://wiki.multitheftauto.com/wiki/Meta.xml
-
Prueba esto, aca tomara a el pasajero 50 de dinero (No Probado) function dinero(theVehicle, seat, jacked) local id = getElementModel ( theVehicle ) if (id == 420) and ( seat ~= 0 ) then local pasajero = getVehicleOccupant ( source, 1 ) takePlayerMoney(pasajero, 50) end end addCommandHandler ( "taximetro", taximetro ) -- EDIT: Arreglado una cosa
-
No defines pasajero, no defines thePlayer o source, Tienes que usar solo 1 si es thePlayer es thePlayer si es source es source, en ese script estas verificando si el que esta en el asiento 0 creo que es el conductor tiene 50 de dinero para luego tomar el dinero de el pasajero que no lo defines
-
createTeam isObjectInACLGroup setPlayerTeam "onPlayerLogin"
-
seat getPlayerMoney takePlayerMoney setTimer "addComandHandler"
-
Bueno en fin, Cualquiera de los dos serviría. @Javier
-
esta haciendo exactamente lo mismo que el mio. Cual es la diferencia ?
-
Hm que raro, Pero no me da error debug y se cancela el bindkey.
-
A mi me funciona perfectamente, Solo que estaba mal el output, Bueno en difinitivo es: Area = createColRectangle ( -2535.9562988281, 1498.9573974609, 300, 800 ) Radar = createRadarArea ( -2535.9562988281, 1498.9573974609, 300, 800, 255, 0, 0, 150 ) posX = 0 posY = 0 posZ = 0 function Boat ( source ) bindKey(source, "F7","down", function(source, matchingDimension) if (getElementType(source) == "player") then setElementPosition(source, posX, posY, posZ) end end) outputChatBox( getPlayerName(source) .. "Estás en la Zona.Presiona F7 si queres entrar.", source, 0, 200, 0, false ) end addEventHandler ( "onColShapeHit", Area, Boat ) function outBoat ( source ) if (getElementType(source) == "player") then unbindKey(source, "F7","down", startKey) end end addEventHandler ( "onColShapeLeave", Area, outBoat )
-
Area = createColRectangle ( -2535.9562988281, 1498.9573974609, 300, 800 ) Radar = createRadarArea ( -2535.9562988281, 1498.9573974609, 300, 800, 255, 0, 0, 150 ) posX = 0 posY = 0 posZ = 0 function Boat ( source ) bindKey(source, "F7","down", function(source, matchingDimension) if (getElementType(source) == "player") then outputChatBox( getPlayerName(source) .. "Estás en la Zona.Presiona F7 si queres entrar.", source, 0, 200, 0, false ) setElementPosition(source, posX, posY, posZ) end end) end addEventHandler ( "onColShapeHit", Area, Boat ) function outBoat ( source ) if (getElementType(source) == "player") then unbindKey(source, "F7","down", startKey) end end addEventHandler ( "onColShapeLeave", Area, outBoat )
-
Area = createColRectangle ( -2535.9562988281, 1498.9573974609, 300, 800 ) Radar = createRadarArea ( -2535.9562988281, 1498.9573974609, 300, 800, 255, 0, 0, 150 ) posX = 0 posY = 0 posZ = 0 function Boat ( thePlayer, matchingDimension ) if (getElementType(thePlayer) == "player") then outputChatBox( getPlayerName(thePlayer) .. "Estás en la Zona.Presiona F7 si queres entrar.", thePlayer, 0, 200, 0, false ) setElementPosition( thePlayer, posX, posY, posZ) end end function StartKey(source) addEventHandler ( "onColShapeHit", Area, Boat ) end bindKey(source, "F7","down", StartKey) function outBoat ( source ) if (getElementType(source) == "player") then unbindKey(source, "F7","down", startKey) end end addEventHandler ( "onColShapeLeave", Area, outBoat )
-
Bueno, Primero verificas con un if si el que entro a el area es un player luego con el setElementPosition le das las nuevas coordenadas de donde quieres que lo mueva luego lo congelas con setPedFrozen en true para luego con un setTimer en determinado tiempo usar el setPedFrozen para false y si quieres le añades el outputChatBox
-
Hm si, Tienes razón nunca me fijo de los eventos: Area = createColRectangle ( -2535.9562988281, 1498.9573974609, 300, 800 ) Radar = createRadarArea ( -2535.9562988281, 1498.9573974609, 300, 800, 255, 0, 0, 150 ) posX = 0 posY = 0 posZ = 0 function Boat ( thePlayer, matchingDimension ) if (getElementType(thePlayer) == "player") then outputChatBox( getPlayerName(thePlayer) .. "Estás en la Zona.Presiona F7 si queres entrar.", thePlayer, 0, 200, 0, false ) setElementPosition( thePlayer, posX, posY, posZ) end end function StartKey() addEventHandler ( "onColShapeHit", Area, Boat ) end bindKey(source, "F7","down", StartKey) function outBoat ( ) if (getElementType(source) == "player") then unbindKey(source, "F7","down", startKey) end end addEventHandler ( "onColShapeLeave", Area, outBoat )
-
Ya tu tienes la zona creada?
-
No, Pero podrías crearlo tu mismo setElementPosition setTimer setPedFrozen outputChatBox "onColShapeHit" Corregido.
-
Hm si eso que te dice Alexs estaría Bueno También serviria
-
Perdona me guie por el Comentario de Castillo. Sabes todo esta en client-side no necesita definir thePlayer en el bindkey, Intenta esto: Area = createColRectangle ( -2535.9562988281, 1498.9573974609, 300, 800 ) Radar = createRadarArea ( -2535.9562988281, 1498.9573974609, 300, 800, 255, 0, 0, 150 ) posX = 0 posY = 0 posZ = 0 function Boat ( thePlayer, matchingDimension ) if (getElementType(thePlayer) == "player") then outputChatBox( getPlayerName(thePlayer) .. "Estás en la Zona.Presiona F7 si queres entrar.", 0, 200, 0, false ) setElementPosition( thePlayer, posX, posY, posZ) end end function StartKey() addEventHandler ( "onColShapeHit", Area, Boat ) end bindKey("F7","down", StartKey) function outBoat ( thePlayer, matchingDimension ) if (getElementType(thePlayer) == "player") then unbindKey("F7","down", startKey) end end addEventHandler ( "onColShapeLeave", Area, outBoat )
-
Primero que nada el thePlayer se define en la funcion function (thePlayer)