Jump to content

12p

Members
  • Posts

    2,608
  • Joined

  • Last visited

Everything posted by 12p

  1. EDIT: Ah espera, tu dices usarlo en el server?
  2. Good job. But I hope you won't release it, in fact.
  3. 12p

    "How to" video's

    Wait.
  4. Say thanks to John, he's the one who gave you the solution. I just gave you the steps to set windowed mode
  5. 12p

    Item attaching

    That means there are parenthesis BEFORE exports. local przedmiot = createObject( 1210,0,0,0 ) local gracz = getLocalPlayer () --You forgot parenthesis function przyczepPrzedmiot () --Parenthesis here exports.bone_attach:attachElementToBone(przedmiot,gracz,12,0,0,0,0,0,0) end addCommandHandler ( "przyczep", przyczepPrzedmiot ) Lol, my bad
  6. 12p

    Item attaching

    Any error using "/debugscript 3"?
  7. 12p

    Item attaching

    Only the real noob, childish scripters do that. Relax przedmioty.lua local przedmiot = createObject( 1210,0,0,0 ) local gracz = getLocalPlayer () --You forgot parenthesis function przyczepPrzedmiot exports.bone_attach:attachElementToBone(przedmiot,gracz,12,0,0,0,0,0,0) end addCommandHandler ( "przyczep", przyczepPrzedmiot )
  8. How to set windowed mode out from MTA Go to your MTA installation path (default is "C:/Program Files/Multi Theft Auto San Andreas"). Go to "MTA" folder. Open "coreconfig.xml" in any text editor. Find this: 0 Replace "0" by "1", it must be: 1. Save the file. Try MTA now.
  9. JUST THINK A BIT, PLEASE. That script will obviously make a non-working text. You must use a simple math to retrieve X and Y from the screen size (clue: use divition).
  10. 12p

    Move Gate

    You're always welcome
  11. 12p

    Move Gate

    Evil, you are wrong. LOOK COMMENTS PLEASE: (WRONG SCRIPT) local MarkerSWAT = createMarker( 1285.8000488281, -1613, 13.5, 'corona', 15.0, 0, 0, 255, 0) local swatgate1 = createObject(980, 1287, -1612.59997559, 15.30000019, 0, 0, 90) function cteam() createTeam("swat", 0, 0, 255) end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), cteam) function MarkerHit1(thePlayer, hitElement, matchingDimension )) --1 extra parenthesis, also this function only has 2 arguments: hitElement and matchingDimension local team = getPlayerTeam(player) --where is "player" defined? local name = getTeamName(team) if name == "swat" then moveObject(swatgate1, 3000, 1287, -1612.59997559, 9.60000038) end end addEventHandler( "onMarkerHit", MarkerSWAT, MarkerHit1 ) function MarkerLeave1( leaveElement, matchingDimension ) local team = getPlayerTeam(player) --where is "player" defined? local name = getTeamName(team) if name == "swat" then moveObject(swatgate1, 3000, 1287, -1612.59997559, 15.30000019) end end addEventHandler( "onMarkerLeave", MarkerSWAT, MarkerLeave1) GOOD CODE: local swatTeam = createTeam("swat", 0, 0, 255) local MarkerSWAT = createMarker( 1285.8000488281, -1613, 13.5, 'corona', 15.0, 0, 0, 255, 0) local swatgate1 = createObject(980, 1287, -1612.59997559, 15.30000019, 0, 0, 90) function MarkerHit1 ( hitElement, matchingDimension ) if getPlayerTeam(hitElement) == swatTeam then moveObject(swatgate1, 3000, 1287, -1612.59997559, 9.60000038) end end function MarkerLeave1( leaveElement, matchingDimension ) if getPlayerTeam(leaveElement) == swatTeam then moveObject(swatgate1, 3000, 1287, -1612.59997559, 15.30000019) end end addEventHandler( "onMarkerHit", MarkerSWAT, MarkerHit1 ) addEventHandler( "onMarkerLeave", MarkerSWAT, MarkerLeave1 )
  12. 12p

    Move Gate

    player is never defined on any function. local swatTeam = createTeam("swat", 0, 0, 255) local MarkerSWAT = createMarker( 1285.8000488281, -1613, 13.5, 'corona', 15.0, 0, 0, 255, 0) local swatgate1 = createObject(980, 1287, -1612.59997559, 15.30000019, 0, 0, 90) function MarkerHit1 ( hitElement, matchingDimension ) if getPlayerTeam(hitElement) == swatTeam then moveObject(swatgate1, 3000, 1287, -1612.59997559, 9.60000038) end end function MarkerLeave1( leaveElement, matchingDimension ) if getPlayerTeam(leaveElement) == swatTeam then moveObject(swatgate1, 3000, 1287, -1612.59997559, 15.30000019) end end addEventHandler( "onMarkerHit", MarkerSWAT, MarkerHit1 ) addEventHandler( "onMarkerLeave", MarkerSWAT, MarkerLeave1 )
  13. 12p

    Agua

    setWaterLevel Fíjate en los argumentos, sergio.
  14. getTickCount
  15. Probably a wrong-listed server functions. Help us; try to make a script using getPedAnimation server sided. If it works, then I will personally fix the wiki pages you say are not working properly
  16. 12p

    Image effect

    viewtopic.php?f=108&t=24262 You need to get race gamemode "client_anim.lua" script. For further info, check: viewtopic.php?f=108&t=24262&start=30#p382009 There's ABSOLUTELY NO NEED to create an image just for displaying text, you can use DirectX text and BankGothic font for a good-looking feature
  17. For me that looks great. Maybe color it a bit blue (just a bit, like HEX:000033)
  18. Any MOD please close this topic before more people like Spanish create replies about testing an already tested new feature...
  19. string.find
  20. 12p

    Agua

    No, pregunto simplemente: ¿CÓMO CREAS AGUA CON EL MAP EDITOR?
  21. @John: Probably it won't be the same effect. The most powerful explosion I created with it made my camera shake as nothing making sense on the world. It won't work good.
  22. 12p

    Agua

    How.
  23. 12p

    Agua

    createWater
×
×
  • Create New...