-
Posts
563 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Stanley Sathler
-
Como criar um server
Stanley Sathler replied to honda_aa's topic in Ajudas relacionadas ao MTA:SA (Cliente/Servidor)
Instruções para a criação de um servidor podem ser encontradas aqui: https://wiki.multitheftauto.com/wiki/Server_Manual Em geral, basta modificar alguns parâmetros do arquivo "mtaserver.conf" e abrir as portas no seu roteador (em caso de conexões roteadas). Estas já foram indicadas pelos demais acima. Após abertura de um servidor, provável que seja necessário o desenvolvimento de alguns scripts para melhoria de seu gamemode. Para tal, informações podem ser encontradas aqui: https://wiki.multitheftauto.com/wiki/Scr ... troduction * Recomendável conhecimento básico (ou superior) em programação -
Creating a car list: • Create a table (vector) with the car names (you can use also the vehicle id's) • Use the functions guiCreateGridList(), guiGridListAddColumn(), guiGridListAddRow() and guiGridListSetItemText() for create a list • Create a loop (for i, v in ipairs(table_name) do) and insert (inside loop) the function guiGridListAddRow() and guiGridListSetItemText(). If you putted names on table, use getElementModel() for get the car id. If you need more help, go to my profile and get my messenger address. I'm from Brazil too, and I can help you better.
-
Wow, amazing! Very useful, thanks RonWolf.
-
p_lights = {} p_timer = {} p_lvar = {} p_pvar = {} p_lvar2 = {} p_lvar3 = {} p_lvar4 = {} function toggleLights(thePlayer, cmd, level) local level = tonumber(level) if not(level) then outputChatBox("#FF0000 Please select a level![1-2]", thePlayer, 255, 255, 255, true) return end if(level < 1) or (level > 2) then outputChatBox("#FF0000 Please select a level between 1-2!", thePlayer, 255, 255, 255, true) return end local veh = getPedOccupiedVehicle(thePlayer) local id = getElementModel(veh) if (getElementType(veh) == "vehicle") then if(level == 1) then if(p_lights[veh] == 0) or(p_lights[veh] == nil) then p_pvar[veh] = 1 p_lights[veh] = 1 outputChatBox("#FFFFFFYour Police-lights has been #00FF00enabled.", thePlayer, 0, 200, 100, true) setVehicleOverrideLights ( veh, 2 ) p_timer[veh] = setTimer( function() if(p_lvar[veh] == 0) or (p_lvar[veh] == nil) then p_lvar[veh] = 1 setVehicleLightState ( veh, 1, 0) setVehicleLightState ( veh, 2, 0) setVehicleLightState ( veh, 0, 1) setVehicleLightState ( veh, 3, 1) setVehicleHeadLightColor(veh, 0, 0, 255) else setVehicleLightState ( veh, 3, 0) setVehicleLightState ( veh, 0, 0) setVehicleLightState ( veh, 1, 1) setVehicleLightState ( veh, 2, 1) setVehicleHeadLightColor(veh, 255, 255, 0) p_lvar[veh] = 0 end end, 500, 0) else p_lights[veh] = 0 killTimer(p_timer[veh]) setVehicleLightState ( veh, 0, 0) setVehicleLightState ( veh, 1, 0) setVehicleLightState ( veh, 2, 0) setVehicleLightState ( veh, 3, 0) setVehicleHeadLightColor(veh, 255, 255, 255) setVehicleOverrideLights ( veh, 1 ) end elseif(level == 2) then if(p_lights[veh] == 0) or(p_lights[veh] == nil) then p_lights[veh] = 1 setVehicleOverrideLights ( veh, 2 ) p_timer[veh] = setTimer( function() if(p_lvar3[veh] == 4) then setTimer(function() p_lvar3[veh] = 0 end, 1000, 1) setTimer( function() if(p_lvar4[veh] == 1)then p_lvar4[veh] = 0 -- 0 = vorne links 1 = vorne rechts 2 = hinten links 3 = hinten rechts setVehicleLightState ( veh, 1, 0) setVehicleLightState ( veh, 2, 0) setVehicleLightState ( veh, 0, 1) setVehicleLightState ( veh, 3, 1) setVehicleHeadLightColor(veh, 77, 77, 255) else setVehicleLightState ( veh, 3, 0) setVehicleLightState ( veh, 0, 0) setVehicleLightState ( veh, 1, 1) setVehicleLightState ( veh, 2, 1) setVehicleHeadLightColor(veh, 255, 77, 77) p_lvar4[veh] = 1 end end, 50, 5) return end if(p_lvar2[veh] == 0) or (p_lvar2[veh] == nil) then p_lvar2[veh] = 1 -- 0 = vorne links 1 = vorne rechts 2 = hinten links 3 = hinten rechts setVehicleLightState ( veh, 1, 0) setVehicleLightState ( veh, 2, 0) setVehicleLightState ( veh, 0, 1) setVehicleLightState ( veh, 3, 1) setVehicleHeadLightColor(veh, 0, 0, 255) else setVehicleLightState ( veh, 3, 0) setVehicleLightState ( veh, 0, 0) setVehicleLightState ( veh, 1, 1) setVehicleLightState ( veh, 2, 1) setVehicleHeadLightColor(veh, 255, 0, 0) p_lvar2[veh] = 0 end if(p_lvar3[veh] == nil) then p_lvar3[veh] = 0 end p_lvar3[veh] = (p_lvar3[veh]+1) end, 500, 0) else p_lights[veh] = 0 killTimer(p_timer[veh]) setVehicleLightState ( veh, 0, 0) setVehicleLightState ( veh, 1, 0) setVehicleLightState ( veh, 2, 0) setVehicleLightState ( veh, 3, 0) setVehicleHeadLightColor(veh, 255, 255, 255) setVehicleOverrideLights ( veh, 1 ) end end end end addCommandHandler("lights", toggleLights) addEventHandler ( "onVehicleExplode", getRootElement(), function() if(p_lights[source] == 1) then killTimer(p_timer[source]) end end ) addEventHandler ( "onVehicleRespawn", getRootElement(), function() if(p_lights[source] == 1) then killTimer(p_timer[source]) end end ) addEventHandler("onElementDestroy", getRootElement(), function () if getElementType(source) == "vehicle" then if(p_lights[source] == 1) then killTimer(p_timer[source]) end end end) Try it. Note: I changed the line: if(id==411) then And put it: if(getElementType(veh) == "vehicle") then
-
Haha, I always use the F5 and when someone ask: "who pressed", I just shut up.
-
Jay, I found, I guess. Try it: vegasNnewfence2b (category: Fences, walls, gates). Is the same object, no? If yet, is a fence O___O. But I'll use it.
-
" [GTA-Ar] Gang Wars ", or something like it. The screenshot was took from jail.
-
Jay, these screenshot was took from a server. The place was modified (created by using Map Editor). I don't know where find this object in original World.
-
Yes Jaysds, but I don't know where I can find this object in World. I got those screenshots from a server.
-
Problema MTA:SA 1.3
Stanley Sathler replied to Pedro Johnson's topic in Ajudas relacionadas ao MTA:SA (Cliente/Servidor)
Pedro, então realmente não sei o que pode ser cara. Isso é muito, muito estranho. -
Jaysds1, but I wanna know the name for find on Map Editor. I tried, but... nothing.
-
Hi guys, I would know this object name (the "wood" wall): - I'm searching for a long time, but I can't find.
-
Problema MTA:SA 1.3
Stanley Sathler replied to Pedro Johnson's topic in Ajudas relacionadas ao MTA:SA (Cliente/Servidor)
Pedro, agora sim entendi seu problema. É cara... eu realmente não faço ideia do que pode ser. Beeeem estranho. Já tentou reinstalar o MTA? Sei lá, pode ter sido bug na instalação, porque realmente não tem uma outra explicação. Você sabe que no menu "open", aquele campo de texto ali em baixo funciona como um mecanismo de busca, né? Quando você salva, o "RCLS Save" fica em primeiro da lista mas, ao fechar o MTA, ele automaticamente é organizado em ordem alfabética. Então quando você acessa mais tarde o menu "open", o "RCLS Save" não estará como primeiro da lista, mas sim lá em baixo. Mas eu creio que você saiba disso, então... realmente bem estranho. -
Problema MTA:SA 1.3
Stanley Sathler replied to Pedro Johnson's topic in Ajudas relacionadas ao MTA:SA (Cliente/Servidor)
O ficheiro "editor_dump" armazena uma espécie de "backup" do seu último mapa criado através do Map Editor. Tal recurso visa justamente evitar acidentes (como uma queda de energia que impeça que você salve seu trabalho). Se você a excluiu, você acabou por remover o seu backup. - Se você abriu o MTA (Map Editor, propriamente dito), por padrão este abre o arquivo presente no "editor_dump" (último mapa modificado). Mas você pode acessar o menu "open" e selecionar o arquivo .map responsável pelo seu trabalho. - Se configurou um servidor local e quer usar o mapa nesse servidor, lembre-se que não basta apenas criar um mapa no Map Editor. Você precisa linká-lo usando um arquivo Meta.xml. -
I love me so much.
-
Not nice, I think. Like Cassandra, is not my kind.
-
[AJUDA] MTA Controles
Stanley Sathler replied to Kan's topic in Ajudas relacionadas ao MTA:SA (Cliente/Servidor)
Quê isso, sem problemas. Seja bem-vindo á comunidade. -
I tried enter here and I could not. What's happened? Isn't 24/h online?
-
[AJUDA] MTA Controles
Stanley Sathler replied to Kan's topic in Ajudas relacionadas ao MTA:SA (Cliente/Servidor)
Kan, francamente não sei o que a "bolinha do mouse" faz exatamente no Map Editor. Mas caso queira rotacionar algum objeto, segure Ctrl+Tecla de movimento (setinhas ou Page up/down). - Caro Kan, conferi aqui. Para realizar tal tarefa segure a tecla Ctrl e aperte as teclas direcionais (seta esquerda/direita), como eu já havia dito. -
efeito do lag no samp/mta nunca é bom
Stanley Sathler replied to Wild's topic in Portuguese / Português
Se deseja controlar o ping máximo/mínimo permitido em um servidor, há vários plugins que possam solucionar tal: https://community.multitheftauto.com/index.php?p=resources&s=list -
Top Times Panel - Made in Photoshop [FREE]
Stanley Sathler replied to CastilloLIV's topic in Resources
Castillo, nice picture, but maybe it would be useful on a Webpage and, for make a similar table, we can use tables from HTML or divs using CSS. Anyway, I liked it. -
efeito do lag no samp/mta nunca é bom
Stanley Sathler replied to Wild's topic in Portuguese / Português
Sim cara, eu troco tiro com laggers o tempo inteiro e sei o quão puto ficamos por tal. Porém, como dito pelo nosso amigo JayZ, creio que não haja nenhuma possibilidade de se codar algo que solucione problemas de conectividade desta forma. - Quanto ao termo "cracker", não vamos rotular termos aqui. "Crackers" não se enquadram nessa explicação, porque não são estes que atrapalham os jogos com os famosos "cheaters", mas sim os Kiddies. De qualquer forma, ignore este meu último parágrafo para que evitemos alterar o rumo da discussão. -
Like GTA IV, GTA V will be released including a multiplayer gamemode. No, you won't be able to script servers or something like it, but you'll can play multiplayer.
-
efeito do lag no samp/mta nunca é bom
Stanley Sathler replied to Wild's topic in Portuguese / Português
Cara, eu não estou entendendo o seu raciocínio principalmente nesta parte. "Fazendo com que os computadores se comuniquem"? Como dito por nosso amigo JayZ, isso não é questão de scripting e sim de habilidade. Se seu oponente está correndo, evidentemente é preciso mirar um pouco adiante levando em consideração a distância entre você e ele (principalmente na Sniper). Bom, mas eu realmente não consegui entender muito bem a sua dúvida. Se puder explicar melhor... -
Cara, incrível: todo tópico que eu vou, encontro o DrakeN arrumando confusão.
