Jump to content

ice_brasil

Members
  • Posts

    127
  • Joined

  • Last visited

Everything posted by ice_brasil

  1. I used this function to when I activate the command on a sound server starts,But when I'm using only I listen I want all players server hear the sound What do I add to when I use the command every listen online? function cevent (thePlayer) local sound = playSound("evcriado.mp3") setSoundVolume(sound, 0.5) end addCommandHandler("cevent",cevent) Sorry my bad english I'm brasilian HELP-ME
  2. create a god mode but added the settlementalpha to let the player invisible,But when I type / god he is invisible only when I type / god again he goes invisible,What do need to edit when typing god again he normal? my client: --Scripts feitos por xXLeandroXx-- --Não remova os créditos-- --Data 03/11/2012-- function togglestaffMode(thePlayer) local account = getPlayerAccount(thePlayer) if (not account or isGuestAccount(account)) then return end local accountName = getAccountName(account) if ( isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Admin" ) ) ) then if getElementData(thePlayer,"invincible") then setElementData(thePlayer,"invincible",false) outputChatBox("#ff0000God Mode Off",thePlayer,255,255,255,true) else setElementData(thePlayer,"invincible",true) outputChatBox("#00ff00God Mode On.",thePlayer,255,255,255,true) end end end addCommandHandler("god",togglestaffMode) function toggleInvis ( thePlayer ) if getElementAlpha( thePlayer ) == 0 then setElementAlpha ( thePlayer, 0) else setElementAlpha ( thePlayer, 130 ) end end addCommandHandler ( "god", toggleInvis ) HELP ME
  3. Thank you all, you are the best.
  4. I could not please help well tried and it did not: addEventHandler ( "onClientPlayerDamage",root, function () if getElementData(source,"invincible") then cancelEvent() end end) addEventHandler("onClientPlayerStealthKill",localPlayer, function (targetPlayer) if getElementData(targetPlayer,"invincible") then cancelEvent() end end) addEventHandler( "onClientRender", root, function( ) for _, plr in pairs( getElementsByType( "player" ) ) do -- iterate through all players if isElementOnScreen( plr ) and getElementData( plr, "invincible" ) then -- check if player is on screen, then draw the text or an image dxDrawText( 'GODMODE On '..invincible, px, py + scY/38, px, py, tocolor( 255, 255, 255, 255 ), 1, 'default-bold', 'center', 'center', false, false ); end end end, HEEEEELP add me, I'm still newbie
  5. I want that when my god-mode is activated A message appears on top of my head for members to know that I'm using god. My Cliente.lua: addEventHandler ( "onClientPlayerDamage",root, function () if getElementData(source,"invincible") then cancelEvent() end end) addEventHandler("onClientPlayerStealthKill",localPlayer, function (targetPlayer) if getElementData(targetPlayer,"invincible") then cancelEvent() end end) local screenWidth, screenHeight = guiGetScreenSize ( ) -- Get the screen resolution (width and height) I know I have to use more dxdrawtext already tested and failed. What do I add could please!
  6. I want to put when a gang all the gang members spawn em território dominado my turf (client) addEvent('countdown', true) function reduceCountdown( ) cont = 50 setTimer( function() cont = cont -1 outputChatBox( cont, 255, 0, 0 ) end,1000,49 ) end addEventHandler('countdown', root, reduceCountdown) addEvent('time', true); addEventHandler('time', root, function( ) local w, h = guiGetScreenSize( ); outputChatBox( "[AVISO] Começando Contagem",getRootElement(),240,128,128,true); local styleLetters = guiCreateFont( 'font.ttf', 20 ); test = guiCreateLabel( w*0.0002, h*0.0011, 0.475, 0.1, 'Dominando..', true ); guiLabelSetColor( test, 255, 255, 0 ) guiSetFont( test, styleLetters ); setTimer( function( ) if isElement( test ) then destroyElement( test ); end end, 5000, 1 ); end ); addEvent('friendly', true); addEventHandler('friendly', root, function( ) local w, h = guiGetScreenSize( ); local styleLetters2 = guiCreateFont( 'font.ttf', 20 ); test2 = guiCreateLabel( w*0.00025, h*0.0011, 0.475, 0.1, 'Territorio Dominado', true ); guiLabelSetColor( test2, 0, 255, 0 ) guiSetFont( test2, styleLetters2 ); setTimer( function( ) if isElement( test2 ) then destroyElement( test2 ); end end, 5000, 1 ); end ); addEvent('group', true); addEventHandler('group', root, function( ) local w, h = guiGetScreenSize( ); local styleLetters3 = guiCreateFont( 'font.ttf', 20 ); test3 = guiCreateLabel( w*0.0003, h*0.0011, 0.475, 0.1, 'Kratos Home', true ); guiLabelSetColor( test3, 255, 0, 0 ) guiSetFont( test3, styleLetters3 ); setTimer( function( ) if isElement( test3 ) then destroyElement( test3 ); end end, 5000, 1 ); end ); addEvent('time2', true); addEventHandler('time2', root, function( ) if isElement( test ) then destroyElement( test ) end end ); addEvent('friendly2', true); addEventHandler('friendly2', root, function( ) if isElement( test2 ) then destroyElement( test2 ) end end ); What do add to add the function?
  7. Thank you all got it !
  8. Does not work someone please help me!
  9. has to add the function to me?
  10. What do I add to make a player use this function only every 15 minutes ? rowx = guiGridListAddRow(Horns) guiGridListSetItemText(Horns, rowx, 1, "KitArmas V.I.P", false, false)
  11. I want to create a script for when a player in any gang entering a territory (radararea) start rule that territory but this has to take a while and the more players on site faster domination. and when the territory is 100% color dominating territory turns the color of the gang. I do not know where to start someone help me?
  12. toggleControl ( source, "chatbox", true) ?????????????
  13. Thanks it worked, but as I release the chat? because with toggleallcommand (true) blocks the chat !!
  14. What do I add to when a player is frozen it can not shoot, move, change weapons want the player to be totally frozen! What do I add? elseif commandName == "congelar" then for i,v in ipairs(players) do setElementFrozen(v,true) outputChatBox("#ff4444[EVENTO]#ffffff O administrador "..getPlayerName(thePlayer).." #ffffffte congelou.",v,178, 34, 34, true ) end elseif commandName == "descongelar" then for i,v in ipairs(players) do setElementFrozen(v,false) outputChatBox("#ff4444[EVENTO]#ffffff O administrador "..getPlayerName(thePlayer).." #ffffffte descongelou.",v,178, 34, 34, true ) end
  15. Yes, over which code should I add to the script so that only the player that are affected by the event are the controls?
  16. Someone there has a login panel with registration running? because all I download does not work when there is someone to register?
  17. Hello everyone, sorry my bad english I'm Brazilian! I have a doubt in a script! I created a script to teleport a player to a map I created the maps! so far so I wanted some more for a teleport inside a motel inside and the interior is it that I wanted to add! script: function motel (thePlayer) setElementPosition ( thePlayer, 2216.3332844, -1150.5032888, 1025.732323227 ) outputChatBox ( "O player ".. getPlayerName(thePlayer) .." Foi para o Motel Vá tambem (/motel)", root, 0, 255, 0 ) end addCommandHandler ( "motel", motel ) as you can see I have the most coordinates inside motel when I type into space and will start to fall because it would need to use tar inside the inner most what do I add to typing so the player / motel he go inside?
  18. As my host was using hamachi just to build my server ... So far so good when I finished the server proucurei and hired a company to host after that when I try to enter my server so I like any person of any error in script when I pause this script gives another has no good as anyone help me? Print:http://img836.imageshack.us/img836/5254/semttulozdk.png
  19. I need help! downloaded a teleport script on my server, so far so good when I go over to the desired type / drop the message for me (you were to drop) I do not want this message appears to me only want to appear for all type player (the player went to the Ice drop also check / drop) as I Faso which this code should I add? Sorry for my bad english I'm Brazilian! Cod: function drop (thePlayer) setElementPosition ( thePlayer, -1053.99548, 1558.86609, 1115.13196 ) outputChatBox ( "Bem vindo ao drop 1°", thePlayer, 0, 255, 0 ) end addCommandHandler ( "drop", drop ) function drop2 (thePlayer) setElementPosition ( thePlayer, -681.61298, -331.70407, 1065.12817 ) outputChatBox ( "Bem vindo ao drop 2°", thePlayer, 0, 255, 0 ) end addCommandHandler ( "drop2", drop2 ) function drop3 (thePlayer) setElementPosition ( thePlayer, 1580.10986, 1016.11517, 1336.80627 ) outputChatBox ( "Bem vindo ao drop 3°", thePlayer, 0, 255, 0 ) end addCommandHandler ( "drop3", drop3 )
  20. I need help, I need to change the color of the selected part of that scoreboard look to green: Tell me where I edit to change this area that writing this from red to green or download and edit for me and then give me the download link Sorry for my bad english I'm Brazilian. Download Link: http://www.4shared.com/zip/rkbXOpAv/trfscoreboard.html?
  21. Hello everyone, First sorry for my bad english I'm Brazilian. I was wondering what is the code for when the player pass over the marker open a painel.I already have the panel just need the code for when someone pass up on this marker panel open that someone could help me?
  22. Hello everyone, I have a problem in a script like I got a jail system for you to use just type / jail after it pops up a window up there ok. But I did not so I wanted to create a marker within an int and when someone from the police team go over more open this window without typing / jail only going over the marker. I already have the marker most do not know how to get the script to create the role of a police officer when passing over the marker to open the window instead of having to type.
  23. Algum brasileiro ai que tenha experiencia em criar resources pode me ajudar em um ? preciso de ajuda se poder deixa uma mensagem abaixo
×
×
  • Create New...