-
Posts
438 -
Joined
-
Last visited
Everything posted by FraN-724
-
En ves de getPlayerSkin usa getElementModel
-
Intento esto. function open() if getKeyState( "lctrl" ) == true or getKeyState( "rctrl" ) == true then if ( guiGetVisible ( Windvip ) == true ) then guiSetVisible ( Windvip, false ) showCursor(false) else guiSetVisible ( Windvip, true ) showCursor(true) end end end bindKey ("V", "down", open)
-
Para eso te pusimos el toggle control, que hace que controlen las armas o nosé, si quieres editar eso de los control ve a esta pagina https://wiki.multitheftauto.com/wiki/Control_names y los cambias o agregas.
-
Sí, ya me di cuenta, es que no ando en mi pc donde tengo los scripts. Además lo puse para que tuviera una idea de como es.
-
No testeado Server side safeZoneRadar = createRadarArea ( 3578.8000488281, -769.29998779297, 400, 150, 0, 170, 255, 230 ) -- los 2 primeros numeros son las X, Y del map, despues los 2 que sigen son el tamaño para hacer el cuadrado o rectangulo, y por ultimo los 4 numeros son los R G B A. function(hitElement) toggleControl (hitElement, "fire", true ) toggleControl (hitElement, "aim_weapon", true) toggleControl (hitElement, "vehicle_fire", true) end
-
[Ayuda] Textos del servidor
FraN-724 replied to EnemyDown's topic in Ayuda relacionada al cliente/servidor
Podrías intentar de hacerlo tú, es fácil, solo tienes que editar el race_client, te recomiendo que uses el notepad++, por si no lo tienes. -
createRadarArea getRadarAreaColor
-
Nice map, good job map.
-
Nice map.
-
.__. jasdhjakd . Quién es ese?.
-
Hahahaha adhakjshdkjasdasdj, Buena pc .
-
Esta bueno, pero como dice Pekio podrías hacer HD, buen trabajo y aporte.
-
Intenta asi --gimnacio function FightstyleColshape () theGymCol = createColTube (768.15, -36.82, 980, 30, 75) end addEventHandler ("onResourceStart", getRootElement(), FightstyleColshape) function FightstyleShop( hitElement, matchingdimension ) if ( source == theGymCol ) then outputChatBox ("Comprar un estilo de lucha.", hitElement, 140, 0, 140) outputChatBox ("1 - 0$ - standard", hitElement, 140, 0, 140) outputChatBox ("2 - 50$ - elbows", hitElement, 140, 0, 140) outputChatBox ("3 - 100$ - grab and kick", hitElement, 140, 0, 140) outputChatBox ("4 - 500$ - box-style", hitElement, 140, 0, 140) outputChatBox ("5 - 750$ - kung-fu style", hitElement, 140, 0, 140) outputChatBox ("6 - 2000$ - knee at head", hitElement, 140, 0, 140) outputChatBox ("/buy (number) to buy.", hitElement, 140, 0, 140) end end addEventHandler ("onColShapeHit", getRootElement(), FightstyleShop) function buyitCommand ( thePlayer, command, number ) if (number == 1) then setPedFightingStyle (thePlayer, 4) outputChatBox ("Estilo estandar cuesta - 0$", thePlayer, 140, 0, 140) takePlayerMoney ( thePlayer, 0 ) elseif (number == 2) then setPedFightingStyle (thePlayer, 16) outputChatBox ("You've bought the elbows fightingstyle - 50$", thePlayer, 140, 0, 140) takePlayerMoney ( thePlayer, 50 ) elseif (number == 3) then setPedFightingStyle (thePlayer, 15) outputChatBox ("You've bought the grab and kick fightingstyle - 100$", thePlayer, 140, 0, 140) takePlayerMoney ( thePlayer, 100 ) elseif (number == 4) then setPedFightingStyle (thePlayer, 5) outputChatBox ("You've bought the boxing fightingstyle - 500$", thePlayer, 140, 0, 140) takePlayerMoney ( thePlayer, 500 ) elseif (number == 5) then setPedFightingStyle (thePlayer, 6) outputChatBox ("You've bought the kung fu fightingstyle - 750$", thePlayer, 140, 0, 140) takePlayerMoney ( thePlayer, 750 ) elseif (number == 6) then setPedFightingStyle (thePlayer, 7) outputChatBox ("You've bought the knee at head fightingstyle - 2000$", thePlayer, 140, 0, 140) takePlayerMoney ( thePlayer, 2000 ) end end addCommandHandler ("buy", buyitCommand) function commandAway ( leaveElement, matchingDimension ) if ( source == theGymCol ) then removeCommandHandler ("buy") outputChatBox ("OMG! Wroc pozniej", leaveElement, 140, 0, 140) end end addEventHandler ("onColShapeLeave", getRootElement(), commandAway)
-
Hahahahaha xdd el Sapo al final lool.
-
Bueno, en si, hay gente que no sabe como utilizar el guieditor, y con solo mirar las funciones quedan más enredados, y siempre buscan un tutorial para aprender, yo seré distinto a los otros, y es un gran aporte hacer el tutorial para los nuevos que no saben usar el guieditor.
-
Intenta así Client function asd() arma = guiCreateWindow(322, 130, 190, 227, "Arma", false) guiWindowSetSizable(arma, false) MP5 = guiCreateButton(29, 68, 139, 113, "MP5", false, arma) showCursor (true) addEventHandler ( "onClientGUIClick", MP5, mp55, false ) end addCommandHandler ("mp5", asd) function mp55 () showCursor (true) triggerServerEvent ( "onGreeting", getLocalPlayer() ) end Server function greetingHandler () giveWeapon ( source, 29, 200, true) end addEvent( "onGreeting", true ) addEventHandler( "onGreeting", getRootElement(), greetingHandler )
-
intenta agregando el evento onClientPlayerJoin
-
Prueba con este Server side for _,t in ipairs(getElementsByType("team")) do setTeamFriendlyFire ( t , false ) end
-
Good map.
-
nice map and good recording
-
Youtube MTA - The adventures of the 3 prostitutes
FraN-724 replied to mangomaster09's topic in Media
Nice video. -
function greetPlayer ( ) addEventHandler("onClientRender", root, drawTheText) setTimer(removeEventHandler, 10000, 1, "onClientRender", root, drawTheText) end addEventHandler ( "onClientResourceStart", resourceRoot, greetPlayer ) function drawTheText() dxDrawText("#ff0000Welcome: #7CFC00"..getPlayerName(localPlayer)..'Al Servidor Estan Cargando Los Resource', sWidth* 0.2, sHeight*0.2, sWidth*0.3, sHeight*0.2, tocolor(255, 255, 255, 255), 5, "bankgothic", "left", "top", false, false, true, true, true) end OT: Renkon, tienes mis números en todas las posts que has hecho .
-
Podrías empezar a experimentar con el resource guieditor, crear tus guis, etc.
