Jump to content

LucasBaker

Members
  • Posts

    134
  • Joined

  • Last visited

Everything posted by LucasBaker

  1. my problem is this I downloaded this script dxdrawtext showing the actual time it right up there Only When some players are at a different resolution of the position of my dxdrawtext changes there something to do that is dxdrawtext Equally for all? the goal of dxdrawtext I put is to side with logo and in some cases is in the middle of the screen. Code: addEventHandler("onClientRender",root, function() local hours = getRealTime().hour local minutes = getRealTime().minute local seconds = getRealTime().second dxDrawText(hours..":"..minutes..":"..seconds,560, 550, 0, 30,tocolor(255,255,255,255),1,"sans") end ) addEventHandler("onClientRender",root, function() local dia = getRealTime().monthday local mes = getRealTime().month local ano = 2013 dxDrawText(dia.."/"..mes.."/"..ano,560, 560, 0, 30,tocolor(255,255,255,255),1,"sans") end )
  2. Acho que tem que dar permissão na acl para kickar não ? @_@
  3. function sayMessage(source, command, ...) theText = {...} text = table.concat(theText, " ") playerAcc = getPlayerAccount(source) if isObjectInACLGroup("user."..getAccountName(playerAcc), aclGetGroup("Admin")) then if theText then if not (text == "") then outputChatBox("#2F4F4F[Administrador] "..getPlayerName..": #2F4F4F"..text, getRootElement(), 0,153,255, true) else outputChatBox("Use: /ALERTA ",source, 0,153,255,true) end end end end addCommandHandler("alerta", sayMessage) Code:
  4. Well I would like to know how do I save the scores, I asked a friend of mine said that he has to create a database anyone could help me telling how to create this "DATABASE"?
  5. be so?, did not understand much: \ function schat (root) addEventHandler( "onPlayerChat", rootElement, schat ) string.format (formatstring, '''') cancelEvent ()
  6. why was not taking required thanks ;D
  7. eg I put link in playsound and the music does not play
  8. Well this script makes music touch to all of the server and I would like for the music to play via links and not for files eg function startMusic() setRadioChannel(0) song = playSound("musica.mp3",true) end function toggleSong() if not songOff then setSoundVolume(song,0) songOff = true removeEventHandler("onClientPlayerRadioSwitch",getRootElement(),makeRadioStayOff) else setSoundVolume(song,1) songOff = false setRadioChannel(0) addEventHandler("onClientPlayerRadioSwitch",getRootElement(),makeRadioStayOff) end end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),startMusic) addEventHandler("onClientPlayerRadioSwitch",getRootElement(),makeRadioStayOff) addEventHandler("onClientPlayerVehicleEnter",getRootElement(),makeRadioStayOff) addCommandHandler("music",toggleSong) bindKey("m","down","music") links instead it could be for example link: setRadioChannel(0) song = playSound("http://dc377.4shared.com/download/ufzJw_G0/System_of_a_Down-Chop_Suey.mp3?tsid=20130522-204925-26cc87a7",true) end
  9. Well this script makes music touch to all of the server and I would like for the music to play via links and not for files eg function startMusic() setRadioChannel(0) song = playSound("musica.mp3",true) end function toggleSong() if not songOff then setSoundVolume(song,0) songOff = true removeEventHandler("onClientPlayerRadioSwitch",getRootElement(),makeRadioStayOff) else setSoundVolume(song,1) songOff = false setRadioChannel(0) addEventHandler("onClientPlayerRadioSwitch",getRootElement(),makeRadioStayOff) end end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),startMusic) addEventHandler("onClientPlayerRadioSwitch",getRootElement(),makeRadioStayOff) addEventHandler("onClientPlayerVehicleEnter",getRootElement(),makeRadioStayOff) addCommandHandler("music",toggleSong) bindKey("m","down","music") links instead it could be for example link: setRadioChannel(0) song = playSound("http://dc377.4shared.com/download/ufzJw_G0/System_of_a_Down-Chop_Suey.mp3?tsid=20130522-204925-26cc87a7",true) end
  10. Mais Fácil seria você cancelar a colisão.. function cancelDeath() cancelEvent() end addEventHandler("onClientPlayerHeliKilled", getLocalPlayer(), cancelDeath) porém tenta ai, (não testei) function kickheli (killer) kickPlayer ( kicked, killer, getPlayerName.." foi Kickado por Helice Kill " ) end addEventHandler ( "onClientPlayerHeliKilled" , root , kickheli )
  11. not taking the weapons (theplayer function tirararmas(thePlayer) takeAllWeapons ( thePlayer() ) setPedArmor ( thePlayer, 100 ) setElementHealth ( thePlayer, 100 ) outputChatBox("[EVENTO] Suas Armas Foram Retiradas.",thePlayer,0,255,255) outputChatBox("[EVENTO] Você recebeu Vida e Colete.",thePlayer,0,255,255) end
  12. Well I would like to create a script to do when a player speak some expletive for example! bitch! get out another word as I love Thee what i could use for this?
  13. well? function jstats (source) setPlayerStat ( source, 75, 1000 ) setPlayerStat ( source, 73, 1000 ) end addEventHandler ( "onPlayerSpawn", getRootElement(), jstats )
  14. Well I'm trying to create a script to do when the player enters the server to set stats 1000 saw and uzi plus has something wrong could someone help me? function jstats (thePlayer) setPlayerStat ( thePlayer, 75, 1000 ) setPlayerStat ( thePlayer, 73, 1000 ) end addEventHandler ( "onPlayerSpawn", getRootElement(), jstats )
  15. Algum MOD que você botou no seu gta ou que tem no servidor que você joga
  16. Bom no caso eu queira abrir um server de MTA em um host eu teria que enviar para o ftp somente a pasta server?
  17. thank then got the following right? function sshop(thePlayer) if (getPlayerMoney(thePlayer) >= 5000) then takePlayerMoney(thePlayer, 5000) setPlayerStat ( thePlayer, 71, 1000 ) setPlayerStat ( thePlayer, 75, 1000 ) setPlayerStat ( thePlayer, 73, 1000 ) outputChatBox( "#FFFF00Você comprou Stats de TEC, Sawed-off e de Deagle.", thePlayer, 255, 255, 255, true ) else outputChatBox( "#FFFF00Você deve ter $5000 ou mais para comprar Stats.", thePlayer, 220, 0, 0, true ) end end addCommandHandler( "fstats", sshop )
  18. When I write, / not fstats Arrow 1000 stats someone could help me? function sshop(thePlayer) if (getPlayerMoney(thePlayer) >= 5000) then takePlayerMoney(thePlayer, 5000) setPlayerStat ( player, 71, 1000 ) setPlayerStat ( player, 75, 1000 ) setPlayerStat ( player, 73, 1000 ) outputChatBox( "#FFFF00Você comprou Stats de TEC, Sawed-off e de Deagle.", thePlayer, 255, 255, 255, true ) else outputChatBox( "#FFFF00Você deve ter $5000 ou mais para comprar Stats.", thePlayer, 220, 0, 0, true ) end end addCommandHandler( "fstats", sshop )
×
×
  • Create New...