Jump to content

FraN-724

Members
  • Posts

    438
  • Joined

  • Last visited

Everything posted by FraN-724

  1. FraN-724

    Dudas

    En ves de getPlayerSkin usa getElementModel
  2. FraN-724

    2 Bind Key

    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)
  3. 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.
  4. 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.
  5. 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
  6. 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.
  7. createRadarArea getRadarAreaColor
  8. lol song, good map .
  9. Hahahaha adhakjshdkjasdasdj, Buena pc .
  10. Esta bueno, pero como dice Pekio podrías hacer HD, buen trabajo y aporte.
  11. 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)
  12. Hahahahaha xdd el Sapo al final lool.
  13. 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.
  14. 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 )
  15. intenta agregando el evento onClientPlayerJoin
  16. Prueba con este Server side for _,t in ipairs(getElementsByType("team")) do setTeamFriendlyFire ( t , false ) end
  17. nice map and good recording
  18. FraN-724

    TCT: FlowEditor

    Good job, congratulations
  19. 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 .
  20. Podrías empezar a experimentar con el resource guieditor, crear tus guis, etc.
×
×
  • Create New...