Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Did you put mta_mysql.dll in the "modules" folder?
  2. addEventHandler ( "onPlayerWasted", getRootElement(), function ( ) setTimer ( function ( player ) if ( not isElement ( player ) ) then return end local gPlayerTeam = getPlayerTeam ( player ) --Line 115 local gFreeroam = getTeamFromName ( "Freeroam Arena" ) local gStuntage = getTeamFromName ( "Stuntage Arena" ) local gHay = getTeamFromName ( "Hay Arena" ) if ( gPlayerTeam and gFreeroam and gPlayerTeam == gFreeroam ) then fadeCameraEffect ( ) local freeroamX, freeroamY, freeroamZ, freeroamRot = unpack ( freeroamSpawns [ math.random ( #freeroamSpawns ) ] ) spawnPlayer ( player, freeroamX, freeroamY, freeroamZ, freeroamRot ) elseif ( gPlayerTeam and gStuntage and gPlayerTeam == gStuntage ) then fadeCameraEffect ( ) local stuntageX, stuntageY, stuntageZ = unpack ( stuntageSpawns [ math.random ( #stuntageSpawns ) ] ) spawnPlayer ( player, stuntageX, stuntageY, stuntageZ ) elseif ( gPlayerTeam and gHay and gPlayerTeam == gHay ) then fadeCameraEffect ( ) spawnPlayer ( player, 6.75989, -3.06701, 3.11719, 0 ) end end ,5000, 1, source ) end )
  3. No, you can't do that. But you can execute that whole code inside the function executed by the event handler to run with a timer.
  4. Castillo

    Gui Help!

    wheels = { { name = "Big Ray Wheel", price = "25000", upgrade = 1085 }, { name = "Black Badass", price = "25000", upgrade = 1096 }, { name = "Styled Wheels", price = "25000", upgrade = 1097 }, { name = "Common Badass", price = "25000", upgrade = 1098 }, { name = "NFS Wheel 1", price = "25000", upgrade = 1079 }, { name = "Cool Wheel 1", price = "25000", upgrade = 1075 }, { name = "Styled Black", price = "25000", upgrade = 1074 }, { name = "Cool Grey", price = "25000", upgrade = 1081 }, { name = "NFS Wheel 2", price = "25000", upgrade = 1080 }, { name = "Organe", price = "25000", upgrade = 1073 }, { name = "Cool Wheel 2", price = "25000", upgrade = 1077 }, { name = "Golden Style", price = "25000", upgrade = 1083 }, { name = "Shainy White", price = "25000", upgrade = 1082 }, { name = "Cool Wheel 3", price = "25000", upgrade = 1078 }, { name = "Cool Rays", price = "25000", upgrade = 1076 }, { name = "Golden Badass", price = "25000", upgrade = 1084 }, { name = "4x4", price = "25000", upgrade = 1025 } }
  5. Castillo

    Gui Help!

    You are using "ipairs", but that is only used for indexed tables, and yours isn't.
  6. I don't really know if there's one in the MTA community, feel free to search there though.
  7. We are here to help you, not make it for you. I don't see how is there an "easier" way. Try to make it, if you fail to do so, post what you have tried and we'll help you.
  8. https://wiki.multitheftauto.com/wiki/Sc ... Tutorial_2 That's a tutorial on how to make one.
  9. Yes, but it has secondary effects.
  10. There's a shader which let's you make the visual ped "bigger". https://wiki.multitheftauto.com/wiki/Sh ... #Ped_morph
  11. Use the following functions: xmlLoadFile xmlNodeGetChildren xmlNodeGetAttribute and a for-loop to loop the table returned by xmlNodeGetChildren.
  12. Woops, fixed. @Jacob: You're welcome.
  13. Yes, it is. local styles = { 4, 5, 6, 7, 15, 16 } addEventHandler ( "onPlayerSpawn", root, function ( ) setPedFightingStyle ( source, styles [ math.random ( #styles ) ] ) end )
  14. You can create the column as string.
  15. Yes, that should work. Remember, these weapons won't be synchronized with the server, so other players won't see it nor be damaged by it.
  16. What do you mean? it doesn't really make much sense to me. Still, you could create a weapon with alpha 0. createWeapon
  17. We don't give support with leaked scripts. Topic locked.
  18. You can use interpolateBetween to make a nice effect.
  19. What I mean is that the sounds you are playing may have no title.
  20. They may not have any title at all.
  21. Hay una funcion o algo que se esta ejecutando infinitamente.
×
×
  • Create New...