-
Posts
21,935 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Castillo
-
It has nothing to do with that, the problem is here: function drugSellerAnim() setElementFrozen(source, true) setPedAnimation(source, "cop_ambient", "Coplook_loop",-1,true,false,false) end setTimer(drugSellerAnim, 1000, 1) Where is 'source' defined here?
-
You mean a command like to respawn the player?
-
I don't understand what do you mean.
-
Vehicle mods: https://community.multitheftauto.com/index.php?p= ... ls&id=3865
-
GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Memo = {} GUIEditor_Checkbox = {} GUIEditor_Label = {} GUIEditor_Progress = {} GUIEditor_Window[1] = guiCreateWindow(121,121,521,407,"Reglas",false) GUIEditor_TabPanel[1] = guiCreateTabPanel(0.0173,0.0663,0.9655,0.8108,true,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Reglas",GUIEditor_TabPanel[1]) GUIEditor_Memo[1] = guiCreateMemo(0.008,0.0327,0.5686,0.9183,"Bueeno las reglas son las siguientes >>>\n\n1. No pedir admin ya que el admin se gana no se pide\n\n2.No usar el spawn R4L si no eres R4L . si se te ve asiendo esto probablemente te ganes algun castigo o algo por el estilo\n\n3. No usar Bugs ni hacks ni nada de eso ya que eso sera razon de bann >D\n\nBueeno esas fueron laas reglas favor tambien ver la Informacion >D",true,GUIEditor_Tab[1]) GUIEditor_Label[1] = guiCreateLabel(0.6064,0.0752,0.3817,0.4804,"R4L Clan",true,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[1],0,0,255) guiSetFont(GUIEditor_Label[1],"sa-gothic") GUIEditor_Label[2] = guiCreateLabel(0.6044,0.2353,0.3042,0.0915,"Innovando scripts",true,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[2],0,0,255) guiSetFont(GUIEditor_Label[2],"clear-normal") GUIEditor_Checkbox[1] = guiCreateCheckBox(0.6103,0.5915,0.3797,0.085,"Acepto las reglas y las seguire",false,true,GUIEditor_Tab[1]) guiSetFont(GUIEditor_Checkbox[1],"default-bold-small") GUIEditor_Progress[1] = guiCreateProgressBar(0.6123,0.7288,0.3678,0.085,true,GUIEditor_Tab[1]) GUIEditor_Tab[2] = guiCreateTab("Informacion",GUIEditor_TabPanel[1]) GUIEditor_Memo[2] = guiCreateMemo(0.0179,0.0359,0.6143,0.9183,"Bueeno esta es la info para que todos sepan todo del server...>\n\n1. el banco esta cerca de el spawn MP y tambien esta en sf la clave del banco de ls es banco xDD\n\n2. eem para que tu clan tenga un spawn favor decirmelo a mi ElMota y se los are solo me tienen que decir los skins que quieren ( almenos 3 o 4 personas activas del clan para hacer spawn )\n\n3. todos los jefes de otros clanes tendran supermod para que controlen a sus hombres\n\n4. todos los R4L tendran admin ( para ser R4L favor ablar con alguno de los jefes o fundadores del clan )\n\ny bueno eso solamente en el tab de las noticias pondre los nuevos scripts >)",true,GUIEditor_Tab[2]) GUIEditor_Checkbox[2] = guiCreateCheckBox(0.6342,0.6471,0.326,0.1569,"lei la informacion",false,true,GUIEditor_Tab[2]) GUIEditor_Label[3] = guiCreateLabel(0.6461,0.0621,0.334,0.5065,"R4L Clan",true,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[3],0,0,255) guiSetFont(GUIEditor_Label[3],"sa-gothic") GUIEditor_Label[4] = guiCreateLabel(0.6501,0.232,0.3241,0.1307,"Innovando scripts",true,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[4],0,0,255) guiSetFont(GUIEditor_Label[4],"clear-normal") GUIEditor_Tab[3] = guiCreateTab("Nuevas Noticias",GUIEditor_TabPanel[1]) GUIEditor_Memo[3] = guiCreateMemo(0.0159,0.0458,0.5547,0.902,"Server Version 1.3 ON \n\n\nPronto mas noticias",true,GUIEditor_Tab[3]) GUIEditor_Label[5] = guiCreateLabel(0.6083,0.1046,0.3738,0.2288,"R4L Clan",true,GUIEditor_Tab[3]) guiLabelSetColor(GUIEditor_Label[5],0,0,255) guiSetFont(GUIEditor_Label[5],"sa-gothic") GUIEditor_Label[6] = guiCreateLabel(0.6123,0.2549,0.2207,0.1275,"Innovando scripts",true,GUIEditor_Tab[3]) guiLabelSetColor(GUIEditor_Label[6],0,0,255) guiSetFont(GUIEditor_Label[6],"clear-normal") GUIEditor_Tab[4] = guiCreateTab("Tab",GUIEditor_TabPanel[1]) bindKey("F1","down", function () guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) end ) Presiona F1 para abrirla/cerrarla.
-
function creation() local screenWidth, screenHeight = guiGetScreenSize() local windowWidth, windowHeight = 479, 301 local left = screenWidth/2 - windowWidth/2 local top = screenHeight/2 - windowHeight/2 gui["_root"] = guiCreateWindow(left, top, windowWidth, windowHeight, "Registracion del personaje", false) guiWindowSetSizable(gui["_root"], false) gui["label"] = guiCreateLabel(90, 25, 281, 21, "Bienvenidos a el servidor", false, gui["_root"]) guiLabelSetHorizontalAlign(gui["label"], "left", false) guiLabelSetVerticalAlign(gui["label"], "center") gui["label_2"] = guiCreateLabel(20, 85, 71, 16, "Nombre :", false, gui["_root"]) guiLabelSetHorizontalAlign(gui["label_2"], "left", false) guiLabelSetVerticalAlign(gui["label_2"], "center") guiEditSetMaxLength ( gui["label_2"], 15 ) gui["label_3"] = guiCreateLabel(20, 125, 61, 20, "Apellido :", false, gui["_root"]) guiLabelSetHorizontalAlign(gui["label_3"], "left", false) guiLabelSetVerticalAlign(gui["label_3"], "center") guiEditSetMaxLength ( gui["label_3"], 15 ) gui["label_4"] = guiCreateLabel(35, 165, 61, 20, "Edad :", false, gui["_root"]) guiLabelSetHorizontalAlign(gui["label_4"], "left", false) guiLabelSetVerticalAlign(gui["label_4"], "center") guiEditSetMaxLength ( gui["label_4"], 2 ) gui["label_5"] = guiCreateLabel(10, 205, 81, 16, "Ubicacion :", false, gui["_root"]) guiLabelSetHorizontalAlign(gui["label_5"], "left", false) guiLabelSetVerticalAlign(gui["label_5"], "center") gui["comboBox"] = guiCreateComboBox(110, 205, 81, 96,"San Fierro", false, gui["_root"]) guiComboBoxAddItem(gui["comboBox"], "San Fierro") guiComboBoxAddItem(gui["comboBox"], "Las Venturas") guiComboBoxAddItem(gui["comboBox"], "Liberty City") guiComboBoxAddItem(gui["comboBox"], "Los Santos") gui["pushButton"] = guiCreateButton(374, 255, 101, 41, "Continuar", false, gui["_root"]) if on_pushButton_clicked then addEventHandler("onClientGUIClick", gui["pushButton"], on_pushButton_clicked, false) end gui["lineEdit"] = guiCreateEdit(110, 85, 113, 20, "", false, gui["_root"]) guiEditSetMaxLength(gui["lineEdit"], 32767) gui["lineEdit_2"] = guiCreateEdit(110, 125, 113, 20, "", false, gui["_root"]) guiEditSetMaxLength(gui["lineEdit_2"], 32767) gui["lineEdit_3"] = guiCreateEdit(110, 165, 113, 20, "", false, gui["_root"]) guiEditSetMaxLength(gui["lineEdit_3"], 32767) guiSetInputEnabled(true) return gui, windowWidth, windowHeight end function loginCreation() creation() end addEvent("onCreation",true) addEventHandler("onCreation",localPlayer,loginCreation)
-
@ElMota: Mira mas arriva, esta el script que usa un comando para abrir la puerta.
-
Esta mal, si entendi bien queres que cuando el jugador entre en el colshape y sea un admin se abra la puerta, si es asi: Puerta = createObject ( 2957, -1665, 1025.0999755859, 18.5, 0, 90, 270) colshape = createColCuboid(-1666.5, 1021.0999755859, 16.5, 3, 8, 4) function abrirPuerta(player) local accName = getAccountName ( getPlayerAccount ( player ) ) -- get his account name if isObjectInACLGroup ("user.".. accName, aclGetGroup ( "Admin" ) ) then moveObject(Puerta,5000 ,-1665, 1022.265625, 18.5) setTimer (moveObject, 5000, 1, Puerta, 5000, -1665, 1025.0999755859, 18.5) -- mueve el objeto end end addEventHandler("onColShapeHit",colshape,abrirPuerta)
-
No hay problema de cuantas preguntas hagas. Hay un ejemplos en la wiki: https://wiki.multitheftauto.com/wiki/CreateColRectangle https://wiki.multitheftauto.com/wiki/CreateMarker
-
Claro, fijate como estan los otros grupos y creas uno nuevo.
-
You set the anti-damage script as a client side script, right?
-
Pues si, cambiaste "Admin" por "Everyone" que es el grupo donde estan todos los jugadores. Puerta = createObject ( 2957, -1665, 1025.0999755859, 18.5, 0, 90, 270) function abrirPuerta(player) local accName = getAccountName ( getPlayerAccount ( player ) ) -- get his account name if isObjectInACLGroup ("user.".. accName, aclGetGroup ( "Admin" ) ) then -- Aca pusiste "Everyone". moveObject(Puerta,5000 ,-1665, 1022.265625, 18.5) -- mueve el objeto end end -- fin de la funcion addCommandHandler("abrir", abrirPuerta)
-
No, esta mal. type="client" deberia ser type="server". "mauro" name="Puertas" version="1.6.9" type="script" description="Puertas" />
-
addEventHandler("onClientPedDamage",root, function () cancelEvent() end ) That'll cancel damage done to peds.
-
Lo tenes definido como server side en el meta.xml, verdad?
-
Puerta = createObject ( 2957, -1665, 1025.0999755859, 18.5, 0, 90, 270) function abrirPuerta(player) local accName = getAccountName ( getPlayerAccount ( player ) ) -- get his account name if isObjectInACLGroup ("user.".. accName, aclGetGroup ( "Admin" ) ) then moveObject(Puerta,5000 ,-1665, 1022.265625, 18.5) -- mueve el objeto end end -- fin de la funcion addCommandHandler("abrir", abrirPuerta)
-
-- Simple Police-Lights by MuLTi! p_lights = {} p_timer = {} p_lvar = {} allowedTeams = {["Admin"] = true} function toggleLights(thePlayer, cmd) local veh = getPedOccupiedVehicle(thePlayer) if (getPlayerTeam(thePlayer) and allowedTeams[getTeamName(getPlayerTeam(thePlayer))]) then if(p_lights[veh] == 0) or (not p_lights[veh]) then p_lights[veh] = 1 setVehicleOverrideLights ( veh, 2 ) triggerClientEvent ( "startSirene", getRootElement(), veh ) p_timer[veh] = setTimer( function() if(p_lvar[veh] == 0) or (p_lvar[veh] == nil) then p_lvar[veh] = 1 -- 0 = vorne links 1 = vorne rechts 2 = hinten links 3 = hinten rechts setVehicleLightState ( veh, 1, 0) setVehicleLightState ( veh, 2, 0) setVehicleLightState ( veh, 0, 1) setVehicleLightState ( veh, 3, 1) setVehicleHeadLightColor(veh, 0, 0, 255) else setVehicleLightState ( veh, 3, 0) setVehicleLightState ( veh, 0, 0) setVehicleLightState ( veh, 1, 1) setVehicleLightState ( veh, 2, 1) setVehicleHeadLightColor(veh, 255, 0, 0) p_lvar[veh] = 0 end end, 500, 0) else p_lights[veh] = 0 killTimer(p_timer[veh]) setVehicleLightState ( veh, 0, 0) setVehicleLightState ( veh, 1, 0) setVehicleLightState ( veh, 2, 0) setVehicleLightState ( veh, 3, 0) setVehicleHeadLightColor(veh, 255, 255, 255) setVehicleOverrideLights ( veh, 1 ) triggerClientEvent ( "stopSirene", getRootElement(), veh ) end else outputChatBox("You can't use this command!", thePlayer, 255, 0, 0, false) end end addCommandHandler("lights", toggleLights) addEventHandler ( "onVehicleExplode", getRootElement(), function() if(p_lights[source] == 1) then killTimer(p_timer[source]) end end ) addEventHandler ( "onVehicleRespawn", getRootElement(), function() if(p_lights[source] == 1) then killTimer(p_timer[source]) end end ) addEventHandler("onElementDestroy", getRootElement(), function () if getElementType(source) == "vehicle" then if(p_lights[source] == 1) then killTimer(p_timer[source]) end end end ) Do you mean that?
-
local numbers ={'1','2','3','4','5'} local pickup = createPickup(0,0,5, pickupid) local marker = createMarker ( 2, 0, 5, "cylinder", 1, 255, 0, 0, 170 ) function giveNumber(player) local account = getPlayerAccount(player) local rand = numbers[math.random(#numbers)] if (rand == '1') then setAccountData(account, "player", 'One') elseif (rand == '2') then setAccountData(account, "player", 'Two') end end addEventHandler("onPickupHit", pickup, giveNumber) function giveMySalary(player) local account = getPlayerAccount(player) if (getAccountData(account,"player") == "One") then giveMoney(player, 10) elseif (getAccountData(account,"player") == "Two") then giveMoney(player, 20) end end addEventHandler("onMarkerHit", marker, giveMySalary)
-
You don't need that '1'. table[math.random(#table)] --WHERE table IS THE NAME OF THE TABLE YOU WANT GET THE NUMBER That would do the same.
-
You should tell us which gamemode are you using, freeroam?
-
My avatar is because I'm a fan of Doctor Who series.
-
You can configure that in the "acl.xml".
-
Vehicle mod: https://community.multitheftauto.com/index.php?p= ... ls&id=3859
-
Better late than never, thank you .