Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. function loadResource ( ) theEntrance = createMarker ( 1481.0408935547, -1771.6051513672, 18.795755386353+1, "arrow", 1.5, 0, 255, 0, 170 ) theExit = createMarker ( 389.8681640625, 173.9693145752, 1008.3828125+1, "arrow", 1.5, 0, 255, 0, 170 ) estateBlip = createBlip ( 1481.0408935547, -1771.6051513672, 18.795755386353+1, 44, 0, 0, 0, 255 ) outputChatBox ( "The Estate has been Loaded!!" ) end addEventHandler ( "onResourceStart", resourceRoot, loadResource ) function markerHitE ( hitPlayer, matchingDimension ) if ( source == theEntrace ) then outputChatBox ( "You are entering the Estate!", hitPlayer ) elseif ( source == theExit ) then outputChatBox ( "You are leaving the Estate!", hitPlayer ) end end addEventHandler ( "onMarkerHit", getRootElement(), markerHitE ) Your problem was that you we're using 'source' in outputChatBox, but your player element is 'hitPlayer'.
  2. Tenes que obtener la rotacion del jugador y cambiarla cada render, asi siempre esta mirandote.
  3. setPedControlState + onClientRender
  4. Afraid why? IF you got the scripts, they are all old and bugged. I'm still waiting for the proof I asked via PM.
  5. I'm afraid you are wrong, Will Briggs paid just for the first scripts, later rewritten by me. Also, like I tell to everyone who buys scripts from me, they can't resell them or give away.
  6. What you may have is the old SAUR scripts, which most are all created by me, so you can't distribute them.
  7. That's because you can't replace a function with another and expect it to work, the function 'setHunterMaxHeight' does not exist.
  8. @ElMota: When will you read fully about how event system and events work? 'onResourceStart' has no player argument, as is a resource what starts, not a player. I've explained you this many times, I don't know why you still do these mistakes.
  9. I barely understand your English, but if you're looking for a MySQL installation manual, then go here: https://wiki.multitheftauto.com/wiki/Mysql
  10. Castillo

    Set Hp

    1: This should be at the "Scripting" section. 2: Never call a function like a MTA native one, unless you want to replace it with your own. 3: setElementHealth ( getElementID, getElementHealth, - ( tonumber(setElementHealth) ) That makes no sense, instead of getElementID it should be targetPlayer. Also, this makes no sense: tonumber(setElementHealth) 4: if (setElementHealth == false) then You should define: setElementHealth ( getElementID, getElementHealth, - ( tonumber(setElementHealth) ) in order to check later if it was successfully set. 5: I recommend you to learn the basics of Lua.
  11. El nombre del dato de las kills del recurso "zombies" es: "Zombie kills", no "Zombie Kills".
  12. Talvez sea porque estas verificando si el string 'zK' es mayor o igual que, quita los apostrofes.
  13. Oh, me olvide de otra cosa, es que estoy en otra cosa por eso .
  14. Ah, le faltaban los parentesis.
  15. El unpack esta bien, pero el setTimer no tiene sentido. local colores = { { 255, 0, 0 }, { 0, 255, 0 }, { 0, 0, 255 }, { 255, 255, 0 }, { 0, 255, 255 }, { 255, 255, 0 }, { 0, 0, 0 } } setTimer ( function ( ) r, g, b = unpack ( colores [ math.random ( #colores ) ] ) end ,2000, 0 ) addEventHandler ( "onClientRender",root, function ( ) dxDrawText ( "http://bhzserver.tuars.com",0.0,571.0,198.0,599.0,tocolor(r,g,b,255),0.5,"bankgothic","left","top",false,false,false) dxDrawText ( "Visit :",0.0,549.0,60.0,572.0,tocolor(255,255,255,255),0.7,"pricedown","left","top",false,false,false) end )
  16. What can I say without being rude... is all wrong, you should learn about event system and Lua basics.
  17. Use the event: onPlayerSpawn instead.
  18. Well, that script will set all online players of that gang stat, but not the players that may connect later.
  19. Topic moved to "Scripting". @Xeno: You forgot to define 'source'. theTeam = createTeam ( "Criminal", 255, 255, 255 ) function setTeam ( thePlayer ) setPlayerTeam ( thePlayer, theTeam ) end addCommandHandler ( "setteam", setTeam )
  20. https://community.multitheftauto.com/ind ... ls&id=5234 Stolen script from me.
  21. Y claro, si estas intentando destruir un numero, no un elemento. Tenes que obtener el vehiculo que esta llevando y luego destruirlo.
×
×
  • Create New...