-
Posts
980 -
Joined
-
Last visited
-
Days Won
1
Everything posted by manawydan
-
start it, and respawn to try (bind is activate when the player spawn)
-
probar nuevo codigo acima
-
segundo server side, make one script server.lua
-
probar c local player = getLocalPlayer() GUIEditor = { button = {}, window = {}, radiobutton = {} } addEventHandler("onClientResourceStart",resourceRoot, function() okno = guiCreateWindow(348, 193, 369, 229, "Skin by Creative", false) guiWindowSetSizable(okno, false) guiSetVisible ( okno, false ) Punk = guiCreateRadioButton(28, 39, 97, 22, "Punk", false, okno) guiSetFont(Punk, "default-bold-small") Sheriff = guiCreateRadioButton(28, 61, 97, 22, "Sheriff", false, okno) guiSetFont(FBI, "default-bold-small") FBI = guiCreateRadioButton(28, 83, 97, 22, "FBI", false, okno) guiSetFont(Sheriff, "default-bold-small") Claude = guiCreateRadioButton(28, 105, 97, 22, "Claude", false, okno) guiSetFont(Claude, "default-bold-small") Biker = guiCreateRadioButton(28, 127, 97, 22, "Biker", false, okno) guiSetFont(Biker, "default-bold-small") Grunge = guiCreateRadioButton(28, 149, 97, 22, "Grunge", false, okno) guiSetFont(Grunge, "default-bold-small") Girl = guiCreateRadioButton(28, 171, 97, 22, "Girl", false, okno) guiSetFont(Girl, "default-bold-small") ok = guiCreateButton(187, 49, 120, 65, "Set", false, okno) reset = guiCreateButton(187, 124, 120, 65, "Reset", false, okno) addEventHandler ( "onClientGUIClick", reset, reset1, false ) addEventHandler("onClientGUIClick",guiRoot,daj) end function daj() if (guiRadioButtonGetSelected ( Punk )) then triggerServerEvent("SetModel",player,181) elseif (guiRadioButtonGetSelected ( Sheriff )) then triggerServerEvent("SetModel",player,283) elseif (guiRadioButtonGetSelected ( FBI )) then triggerServerEvent("SetModel",player,286) elseif (guiRadioButtonGetSelected ( Claude )) then triggerServerEvent("SetModel",player,299) elseif (guiRadioButtonGetSelected ( Biker )) then triggerServerEvent("SetModel",player,248) elseif (guiRadioButtonGetSelected ( Grunge )) then triggerServerEvent("SetModel",player,101) elseif (guiRadioButtonGetSelected ( Girl )) then triggerServerEvent("SetModel",player,141) end end function reset1() triggerServerEvent("SetModel",player,0) end addEvent("PanelOnof",true) addEventHandler("PanelOnof",root, function() guiSetVisible(okno,not guiGetVisible(okno)) showCursor(not isCursorShowing()) end) server addEvent("SetModel",true) addEventHandler("SetModel",root, function(id) setElementModel(source,id) end) addEventHandler("onPlayerSpawn",root, function() bindKey(source,"F6","down",Lol) end) function Lol() triggerClientEvent(source,"PanelOnof",source) end
-
probar usar triggerServerEvent with setElementModel, in server side
-
probar (no probado) editado probar con otro event function Enter(p,seat,jacker,dor) if (seat == 0) then local otherp = getVehicleOccupant(source,0) if (otherp) then cancelEvent() --outputChatBox("No enter in vehicle with owner",p) end end end addEventHandler("onVehicleEnter",root,Enter)
-
you can use for and ipairs
-
it work if i start it ingame, but if one player join, no appers to the player the labels
-
error guiSetText[expected gui element argument 1, got nil in debug label not appear, (i am level 6, using your exp_system)
-
hi, iam try make label with exp text( using drawyourlevel) but the label no apers
-
tienta function Nemesisbymanawydan () baz = createObject ( 360, -1935.5480957031, 665.44055175781, 48, 0, 0, 0 ) nemesi = exports [ "slothBot" ]:spawnBot ( 1079.5283203125, 1064.6181640625, 10.8359375, 90, math.random ( 300, 303 ), 0, 0, Nemesis, 38, "hunting", true ) setElementModel ( nemesi, 107 ) outputChatBox ("#0000Ff|ALERT|#c0c0c0 Se Detecto Un Nemesis en las Vegas !!",getRootElement(), 255, 255, 255, true ) BlipNemesis = createBlipAttachedTo ( nemesi, 0 ) attachElements ( baz, nemesi, 0.2, 0.1, 0.5, 0, 90, 0 ) triggerClientEvent ( "nsound", root ) setElementData(nemesi, "nemesis",true) if nemesi then exports.extra_health:setElementExtraHealth ( nemesi, 500 ) end end setTimer(Nemesisbymanawydan,1000,1) addEvent("onBotWasted",true) addEventHandler("onBotWasted",getRootElement(), function (killer) if (source == nemesi) then givePlayerMoney(killer,math.random(4000,5000)) outputChatBox ( getPlayerName ( killer ) .. " #888888Acabo con un Nemesis gana #ACFA58 $ 5.000 and exp : 600 !!",getRootElement(), 255, 255, 255, true ) exports.exp_system:addPlayerEXP ( killer, 600 ) destroyElement(BlipNemesis) -- respawn setTimer(Nemesisbymanawydan,60000,1) -- 60000 = 1 min end end)
-
just use setSoundMaxDistance
-
blz, to com um dificuldade aki: Fs.AtirarKunais = function (player,k,ks) if isPedInVehicle(player) then return end if getPedWeapon(player)~= 4 then return end local Alvo = getPedTarget(player) if not(Alvo) then return end local Tipo = getElementType(Alvo) if (Tipo == "ped") or (Tipo == "player") then takeWeapon(player,4) local x,y,z = getElementPosition(player) local px,py,pz = getElementPosition(Alvo) Kunai = createObject(335,x,y,z+0.5,0,0,0) KunaiEsfera = createColSphere (x,y,z,0.7) setElementData(KunaiEsfera,"Kunai",true) attachElements(KunaiEsfera,Kunai,0,0,0) setElementParent(KunaiEsfera,Kunai) setElementFrozen(Alvo,true) moveObject(Kunai,2000,px,py,pz,90,0,0,"OutQuad") --setTimer(setElementFrozen,2000,1,Alvo,false) end end addEventHandler("onColShapeHit",getRootElement(), function(E) if getElementType(E) == "player" or getElementType(E) == "ped" then if getElementData(source,"Kunai") then destroyElement(source) destroyElement(getElementData(source,"Kunai")) local Vida = getElementHealth(E) if (Vida >=20) then setElementHealth(E,Vida-20) else killPed(E) end end end end) então Fs é uma tabela que usei para guardar funcoes, o problema e que a faca(objeto) n é destruida.apena a esfera de colisao
-
boa sorte com o server!
-
voce poderia usa o recurso exp_system de castilo e usa suas funções exportadas https://community.multitheftauto.com/in ... ls&id=1253
-
try this function getPlayersInVehicle(model) local t ={} for k,v in ipairs(getElementsByType("player")) do if isPedInVehicle(v) then if (getElementModel(getPedOccupiedVehicle(v)) == model) then table.insert(t,v) end end end return t end
-
is one card game site: http://www.yugioh-card.com/en/
-
blz, obrigado
-
ola pessoal, eu recentemente tentando melhoras minhas habilidades de scripts (que estão bem baixas), estou tentando criar umas modificações para um mode de naruto. Atualmente o mod esta cheio de bugs, porém com o tempo tentarei arruma-lo Os scripts estão todos open-source, então você é livre para modificar. Como essa é apenas uma versão de testes, toda ajuda seria bem-vinda: checar os bugs, ajuda no desenvolvimento, etc. Download: https://drive.google.com/file/d/0B0vKcP ... sp=sharing obrigado!
-
nice job and good work, i love yu-gi-oh.
-
[Proyecto] Zombie Apocalypse Roleplay.
manawydan replied to DanielZ3RO's topic in Servidores en donde jugar
suerte -
i think: you can create one object and one weapon (with alpha 0) attach with bone_attach resource and use any functions: getElementPosition createWeapon setWeaponState setWeaponOwner setElementAlpha getElementRotation etc tables and math function do not know if it is possible to do this good luck