Plate
Members-
Posts
938 -
Joined
-
Last visited
Everything posted by Plate
-
Jaja de nada cualquier cosa pregunta
-
Se lo digo todo de una jaja por que esta todo desparramado addCommandHandler setPedSkin giveWeapon getTeamFromName getPlayersInTeam
-
tendria que usar un for-loop de getPlayersInTeam
-
function TrigeOpen(thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Donadores" ) ) then triggerClientEvent(thePlayer, "AbrirEven", thePlayer) else outputChatBox("No eres donador para abrir este panel.", thePlayer) end end addCommandHandler ("paneld", TrigeOpen) PD: Gracias a tus videos aprendi a cambiar skins *-*
-
triggerClientEvent(thePlayer, "AbrirEven", getRootElement())
-
function destroyMyBlip() if isElement(myBlip) then destroyElement(myBlip) end end addEvent("onBotWasted", true) addEventHandler("onBotWasted", getRootElement(), destroyMyBlip)
-
local hillRadar = createRadarArea ( -2183.5678710938, 705.67950439453, 40, -40, 0, 255, 0, 175 ) function Nemesisbymanawydan ( ) baz = createObject ( 360, 2520.1318359375, -953.83752441406, 82.331726074219, 0, 0, 0 ) nemesi = exports [ "slothBot" ]:spawnBot ( 2520.1318359375, -953.83752441406, 82.331726074219, 90, math.random ( 300, 303 ), 0, 0, Nemesis, 38, "hunting", true ) setElementModel ( nemesi, 107 ) outputChatBox ("#9E0000Nemesis: #0D9905Dale Perra Ven a Matarme...Si Puedes!",getRootElement(), 255, 255, 255, true ) local myBlip = (createBlipAttachedTo ( nemesi, 0 )) attachElements ( baz, nemesi, 0.2, 0.1, 0.5, 0, 90, 0 ) triggerClientEvent ( "nsound", root ) triggerClientEvent ( "nemesismissel", root ) setTimer( function() exports.extra_health:setElementExtraHealth(nemesi, 1000) end, 1100, 0) end addEventHandler("onResourceStart", resourceRoot, Nemesisbymanawydan) addEvent("onBotWasted",true) addEventHandler("onBotWasted",getRootElement(), function (theKiller) if (source == nemesi) then givePlayerMoney(theKiller,math.random(150000)) outputChatBox ( getPlayerName ( theKiller ) .. " #081DBFMato al Nemesis!, Ha Ganado 150.000$",getRootElement(), 255, 255, 255, true ) setTimer(Nemesisbymanawydan, 16000, 1) end end)
-
No modificastes esto? addEvent("onBotWasted",true) addEventHandler("onBotWasted",getRootElement(), function (theKiller) if (source == nemesi) then givePlayerMoney(theKiller,math.random(150000)) outputChatBox ( getPlayerName ( theKiller ) .. " #081DBFMato al Nemesis!, Ha Ganado 150.000$",getRootElement(), 255, 255, 255, true ) setTimer(Nemesisbymanawydan, 16000, 1) end end) PD: ponelo en lua no en Code A mi me anda bien
-
Para que el local hillArea = createColRectangle ( -2171.0678710938, 678.17950439453, 15, 15 )
-
Fail ahora anda muchas gracias PD: Lo medio dormido al script
-
function createTeam() sol = createTeam("Soldados", 0, 255, 0) end addEventHandler("onResourceStart", getRootElement(getThisResource()), createTeam) function spawn() spawnPlayer(source, 318.04815673828, 1939.021484375, 17.640625, 0, 297, 0, 0, sol) fadeCamera (source, true) setCameraTarget (source, source) end addEventHandler("onPlayerJoin", getRootElement(), spawn) function skin() skin = getPedSkin(source) end addEventHandler("onPlayerWasted", getRootElement(), skin) functionr respawn() local teamname = getTeamName(getPlayerTeam(source)) if teamname == "B.S.A.A" then setTimer(spawnPlayer, 10000, 1, source, -2436.6784667969,533.19683837891,29.90103149414, 90, skin) elseif teamname == "Soldados" then setTimer(spawnPlayer, 10000, 1, source, 318.04815673828, 1939.021484375, 17.640625, 90, skin) fadeCamera (source, true) setCameraTarget (source, source) end add addEventHandler("onPlayerWasted", getRootElement(), respawn)
-
spawn/spawn.lua:15: "=" expected near respawn functionr respawn() local teamname = getTeamName(getPlayerTeam(source)) if teamname == "B.S.A.A" then
-
Me sigue dando error en el "="
-
setTimer( function() exports.extra_health:setElementExtraHealth(nemesi, 1000) end, 1100, 0) end createRadarArea
-
Si es solo parte de un script
-
ese seria el respawn igual me da error en el "="
-
Hola quisiera saber si esto andaria local teamname = getTeamName(getPlayerTeam(source)) if (teamName == "U.S.S") then setTimer(spawnPlayer, 10000, 1, source, 319.04815673828, 1929.021484375, 13.640625, 90, skin)
-
Es demaciado largo te lo mando por pm
-
Si solid en esa linea me da el error en el argumento 4
-
Nop me dice expected string at argument 4 got table
-
function showmembers() local row, col = guiGridListGetSelectedItem ( clist ) if ( row and col and row ~= -1 and col ~= -1 ) then local team = guiGridListGetItemText ( clist, row, columnC ) for i, v in ipairs (getPlayersInTeam(getTeamFromName(team))) do local row = guiGridListAddRow(members) guiGridListSetItemText(members, row, mlist, getPlayerName(v), false, false) end end addEventHandler("onClientGUIClick", showlist, showmembers, false)
-
for i, v in ipairs (getPlayersInTeam(team)) do guiGridListSetItemText(members, row, mlist, v, false, false)
-
for i, team in ipairs (getElementsByType("team")) do asi?
-
Lo que yo quiero es poner los miembros de un team en una gridlist
