-
Posts
48 -
Joined
-
Last visited
Everything posted by Andrixx
-
Castillo, he utilizado lo que me dijiste de onVehicleStartEnter Vehicles = { [420]=true } Skins = { [303]=true } function enterVehicle ( player, seat, jacked ) --when a player enters a vehicle if ( Vehicles[getElementModel(source)] ) and ( not Skins[getElementModel(player)] ) then --if the vehicle is one of 4 police cars, and the skin is not a police skin cancelEvent() outputChatBox ( "Tu no eres taxista", player ) --and tell the player why end end addEventHandler ( "onVehicleStartEnter", getRootElement(), enterVehicle ) Pero no pueden entrar ni con la "G" ¿Como lo arreglo? Gracias...
-
Hola, he intentado bloquear un auto (el 420) para todos los skin, ha excepcion del skin 303, pero no se como hacerlo. He buscado por la wiki y he encontrado el setVehicleLocked pero dice como bloquear un auto en el que estas y yo no necesito eso No sabria que poner aqui del script porque solo tengo esto function block1( source ) if (getElementModel(source) == 303) end addEventHandler ( "onResourceStart", getRootElement(), block1) Por favor si alguien sabe que me ayude... y si no es muy dificil que lo haga para mi Gracias..
-
fix it thanks to you thanks Client function Panel() Ventana = guiCreateWindow(439, 57, 401, 419, "Ventana prueba", false) guiWindowSetSizable(Ventana, false) guiSetAlpha(Ventana, 0.78) Inf = guiCreateButton(34, 121, 157, 79, "Infernus ($11000)", false, Ventana) Bull = guiCreateButton(217, 121, 157, 79, "Bullet ($10000)", false, Ventana) Che = guiCreateButton(34, 210, 157, 79, "Cheetah ($9000)", false, Ventana) Com = guiCreateButton(217, 210, 157, 79, "Comet ($8000)", false, Ventana) bik = guiCreateButton(221, 299, 157, 79, "Bike ($6000)", false, Ventana) Sul = guiCreateButton(34, 299, 157, 79, "Sultan ($7000)", false, Ventana) Cerrar = guiCreateButton(124, 397, 155, 65, "Cerrar", false, Ventana) showCursor ( true ) addEventHandler ( "onClientGUIClick", Cerrar, Exit, false ) addEventHandler ( "onClientGUIClick", Inf, infernus, false ) addEventHandler ( "onClientGUIClick", Bull, bullet, false ) addEventHandler ( "onClientGUIClick", Che, cheetah, false ) addEventHandler ( "onClientGUIClick", Com, comet, false ) addEventHandler ( "onClientGUIClick", bik, bike, false ) addEventHandler ( "onClientGUIClick", Sul, sultan, false ) end addCommandHandler ( "buy", Panel ) function Exit () showCursor ( false ) guiSetVisible (Ventana, not guiGetVisible ( Ventana ) ) end function infernus() triggerServerEvent ( "Car1", getLocalPlayer() ) end Server Side function Infeee() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 11000) then takePlayerMoney(source,11000) x,y,z = getElementPosition ( source ) Vehicle = createVehicle ( 411, x+2, y, z +2 ) end end addEvent("Car1",true) addEventHandler( "Car1", getRootElement(), Infeee )
-
where am I wrong? Client: function Panel() Ventana = guiCreateWindow(439, 57, 401, 419, "Ventana prueba", false) guiWindowSetSizable(Ventana, false) guiSetAlpha(Ventana, 0.78) Inf = guiCreateButton(34, 121, 157, 79, "Infernus ($11000)", false, Ventana) Bull = guiCreateButton(217, 121, 157, 79, "Bullet ($10000)", false, Ventana) Che = guiCreateButton(34, 210, 157, 79, "Cheetah ($9000)", false, Ventana) Com = guiCreateButton(217, 210, 157, 79, "Comet ($8000)", false, Ventana) bik = guiCreateButton(221, 299, 157, 79, "Bike ($6000)", false, Ventana) Sul = guiCreateButton(34, 299, 157, 79, "Sultan ($7000)", false, Ventana) Cerrar = guiCreateButton(124, 397, 155, 65, "Cerrar", false, Ventana) showCursor ( true ) addEventHandler ( "onClientGUIClick", Cerrar, Exit, false ) triggerServerEvent ( "onClientGUIClick", Inf, infernus, false ) addEventHandler ( "onClientGUIClick", Bull, bullet, false ) addEventHandler ( "onClientGUIClick", Che, cheetah, false ) addEventHandler ( "onClientGUIClick", Com, comet, false ) addEventHandler ( "onClientGUIClick", bik, bike, false ) addEventHandler ( "onClientGUIClick", Sul, sultan, false ) end addCommandHandler ( "buy", Panel ) function Exit () showCursor ( false ) guiSetVisible (Ventana, not guiGetVisible ( Ventana ) ) end Server side: function infernus() Jugador = getLocalPlayer() x, y, z = getElementPosition (Jugador) createVehicle ( 411, x +2, y, z +2 ) takePlayerMoney ( 11000 ) end
-
but I do not know how to create the server side u.u
-
Hello, what happens is that yesterday was testing the guieditor which I liked a lot I did a panel to buy cars, works well the only problem is that when leaving the car, the character can not enter, as if you were the doors BLOCKED. function Panel() Ventana = guiCreateWindow(439, 57, 401, 419, "Ventana prueba", false) guiWindowSetSizable(Ventana, false) guiSetAlpha(Ventana, 0.78) Inf = guiCreateButton(34, 121, 157, 79, "Infernus ($11000)", false, Ventana) Bull = guiCreateButton(217, 121, 157, 79, "Bullet ($10000)", false, Ventana) Che = guiCreateButton(34, 210, 157, 79, "Cheetah ($9000)", false, Ventana) Com = guiCreateButton(217, 210, 157, 79, "Comet ($8000)", false, Ventana) bik = guiCreateButton(221, 299, 157, 79, "Bike ($6000)", false, Ventana) Sul = guiCreateButton(34, 299, 157, 79, "Sultan ($7000)", false, Ventana) Cerrar = guiCreateButton(124, 397, 155, 65, "Cerrar", false, Ventana) showCursor ( true ) addEventHandler ( "onClientGUIClick", Cerrar, Exit, false ) addEventHandler ( "onClientGUIClick", Inf, infernus, false ) addEventHandler ( "onClientGUIClick", Bull, bullet, false ) addEventHandler ( "onClientGUIClick", Che, cheetah, false ) addEventHandler ( "onClientGUIClick", Com, comet, false ) addEventHandler ( "onClientGUIClick", bik, bike, false ) addEventHandler ( "onClientGUIClick", Sul, sultan, false ) end addCommandHandler ( "buy", Panel ) function Exit () showCursor ( false ) guiSetVisible (Ventana, not guiGetVisible ( Ventana ) ) end function infernus() Jugador = getLocalPlayer() x, y, z = getElementPosition (Jugador) createVehicle ( 411, x +2, y, z +2 ) takePlayerMoney ( 11000 ) end function bullet() Jugador = getLocalPlayer() x, y, z = getElementPosition (Jugador) createVehicle ( 541, x +2, y, z +2 ) takePlayerMoney ( 10000 ) end function cheetah() Jugador = getLocalPlayer() x, y, z = getElementPosition (Jugador) createVehicle ( 415, x +2, y, z +2 ) takePlayerMoney ( 9000 ) end function bike() Jugador = getLocalPlayer() x, y, z = getElementPosition (Jugador) createVehicle ( 509, x +2, y, z +2 ) takePlayerMoney ( 8000 ) end function sultan() Jugador = getLocalPlayer() x, y, z = getElementPosition (Jugador) createVehicle ( 560, x +2, y, z +2 ) takePlayerMoney ( 7000 ) end function comet() Jugador = getLocalPlayer() x, y, z = getElementPosition (Jugador) createVehicle ( 480, x +2, y, z +2 ) takePlayerMoney ( 6000 ) end
-
Aqui te dejo un video donde explico como cambiar armas... y el codigo es: txd = engineLoadTXD("weapons/3.txd", 334 ) engineImportTXD(txd, 334) dff = engineLoadDFF("weapons/3.dff", 334 ) engineReplaceModel(dff, 334) El "334" es el Model ID de tu "3"
-
We hope that similar problems do not follow ...
-
=========================================Español========================================= Bueno entre tanto buscar y buscar encontre como arreglar el map editor 1.1, en otras palabras el cargar/guardar mapas. Es sencillo, solo ir a "C:\Archivos de programa\MTA San Andreas 1.1\server\mods\deathmatch\resources" y buscar las siguientes carpetas: - editor_drump - editor_test Lo que haran es borrarlas... entran al map editor y prueben cargar un mapa (las carpetas se volveran a crear, por el cual deben volver a borrarlas cuando no les cargue el mapa) =========================================English========================================= Well meanwhile long search I found how to fix the map editor 1.1, in other words, the load / save maps. It's easy, just go to "C:\Program Files\MTA San Andreas 1.1\server\mods\deathmatch\resources" and look for the following folders: - editor_drump - editor_test What they will do is delete ... enter the map editor and try to load a map :D (folders will be recreated, for which they should go back to delete them when they do not load the map)
-
Actualizacion 1.1 me ah jodido los fps del server
Andrixx replied to Andrixx's topic in Ayuda relacionada al cliente/servidor
Exactamente con el editor... -
Para mas presicion <radio name="Radio Drivers For Life" path="http://clandfl.listen2myradio.com/media/playradio976288.asx" type="4" />
-
=========================================Español========================================= Cada vez que quiero entrar a un server o ya entre, de vez en cuando aparece este error: Que puede ser? =========================================English========================================== Every time I enter a server or longer between now and then this error: What could be? Thanks...
-
the truth, no, I made a friend but never finished
-
<meta> <info author="Andrixx" version="1.0.0" type="script" name="PanelUsuario" description="" showInResourceBrowser="true" /> <config src="help.xml" type="client" /> <script src="guic.lua" type="client" /> <script src="roll.lua" type="client" /> <script src="rollC.lua" type="client" /> <script src="money.lua" type="client" /> <script src="kill.lua" type="client" /> <file src="Banner.png" /> <file src="C.png" /> <file src="Colors.png" /> <file src="cross.png" /> <file src="money.png" /> </meta>
-
help.xml guic.lua roll.lua rollC.lua money.lua kill.lua Banner.png C.png Colors.png cross.png money.png
-
might have created just that
-
like where do I get? because it is not downloadable
-
tranks, but I have in "guic.lua" this: function menuShow () visableornot = guiGetVisible (Window) name = getPlayerName ( getLocalPlayer() ) triggerServerEvent ( "getstats", getLocalPlayer() ) if (visableornot == true) then guiSetVisible (Window, false) guiSetVisible (clrsWindow, false) guiSetVisible (createteam_Window, false) guiSetVisible (tmprpts_Window, false) showCursor (false) guiMoveToBack( image2 ) guiMoveToBack( image ) end if (visableornot == false) then guiSetVisible (Window, true) showCursor (true) money = getPlayerMoney ( getLocalPlayer() ) guiSetText ( mny_lbl, '$ ' .. money ) guiSetText ( money2_lbl, '$ ' .. money ) guiSetText ( Window, 'Echo por Andrixx, Bienvenido [ ' .. name .. ' ]' ) end end where anger that you say? Tranks
-
=========================================Español========================================= Hola, Bueno mi problema esque me aparece el siguiente error al apretar F1 para abrir el panel.... ERROR: Client triggered serverside event okmsg, but event is not added serverside Una imagen para ver mejor A que se debe? =========================================English========================================= Hello, Well my problem esque me the following error when pressing F1 to open the panel .... ERROR: Client triggered serverside event okmsg, but event is not added serverside An image to see better Why is this?