-
Posts
134 -
Joined
-
Last visited
Everything posted by LucasBaker
-
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 )
-
Acho que tem que dar permissão na acl para kickar não ? @_@
-
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:
-
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"?
-
be so?, did not understand much: \ function schat (root) addEventHandler( "onPlayerChat", rootElement, schat ) string.format (formatstring, '''') cancelEvent ()
-
why was not taking required thanks ;D
-
eg I put link in playsound and the music does not play
-
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
-
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
-
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 )
-
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
-
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?
-
well? function jstats (source) setPlayerStat ( source, 75, 1000 ) setPlayerStat ( source, 73, 1000 ) end addEventHandler ( "onPlayerSpawn", getRootElement(), jstats )
-
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 )
-
Oque é isso ?
LucasBaker replied to giovanniFire's topic in Ajudas relacionadas ao MTA:SA (Cliente/Servidor)
Algum MOD que você botou no seu gta ou que tem no servidor que você joga -
Bom no caso eu queira abrir um server de MTA em um host eu teria que enviar para o ftp somente a pasta server?
-
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 )
-
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 )