Jump to content

KiffShark

Members
  • Posts

    60
  • Joined

  • Last visited

Everything posted by KiffShark

  1. Hi I want to know if is possible to change anims to parkour anim for example, for all player, not in my gta folders.. Or there is some resource about that? Thanks!
  2. mmm It's says there isn't more updates needed.. where I should find that option?
  3. well.. I'm so tired of memorize coords to write them on a .lua for put a ped.. blablabla.. There is some resource for that on map editor?? thanks for answer!
  4. That works SolidSnake! Thanks everybody! /Gracias!!
  5. hi! thanks for answer!! console give me error at: local Health5 = getElementHealth(source) setElementHealth ( source, Health5 + 1 ) the same
  6. Hi everybody! I've done a shoppanel and in a button that simulates something like adrenaline I want that it give +1 health every second the button works ok with client.. gui... everything.. function setsalud4 works ok, (but setTimer I guess) because of the console give me error in elements at function setsalud5 (marked with --HERE).. nil value... every second and in the game I don't receive +1/s so maybe timer runs good and the problem is setsalud5 function setsalud5 () local Health5 = getElementHealth(source) --HERE setElementHealth ( source, Health5 + 1 ) -- HERE end addEventHandler ( "salud5", getRootElement(), setsalud5 ) addEvent( "salud4", true ) function setsalud4 (player) local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 5000) then setElementHealth ( source, 500 ) setPedStat(source, 22, 999) setPedStat(source, 23, 999) setPedStat(source, 24, 999) setPedStat(source, 225, 999) --bucear takePlayerMoney(source,5000) outputChatBox ( "*Has comprado virus Génesis por $5000*", source, 255, 0, 0 ) outputChatBox ( "*El virus te da +salud, +fuerza, +resistencia +resistencia de buceo. Durante 1 sesión*", source, 255, 0, 0 ) setTimer ( setsalud5, 1000, 0 ) else outputChatBox("*No tienes suficiente dinero*", source, 255, 0, 0, true) end end addEventHandler ( "salud4", getRootElement(), setsalud4 ) Some Idea?
  7. ok, the problem I had was that pedrotation is attached to camera's direction (I like in this way) but if I look too down (to the floor) the ped rotates like if he doesn't know where to go... because of looking vertically to down not give him any horizontal direction... that's why I want something to can't look so down and fix this bug well, sorry about my english, I think it can be understood
  8. This is what I've tried.. but now zombies not spawn in any hour What do you think? (I'm noob) my lines: 4,5,6,62,63 --SPAWNS ZOMBIES RANDOMLY NEAR PLAYERS function SpawnZombie () local pacecount = 0 local time = getRealTime() -- ADDED BY ME local hours = time.hour -- ADDED BY ME If ( hours > 00 ) and ( hours < 07 ) then -- ADDED BY ME while pacecount < 5 do --4 ZOMBIES AT A TIME TO PREVENT FPS DROP if (table.getn( everyZombie )+pacecount < newZombieLimit ) and (ZombieStreaming == 1) then local xcoord = 0 local ycoord = 0 local xdirection = math.random(1,2) if xdirection == 1 then xcoord = math.random(15,40) else xcoord = math.random(-40,-15) end local ydirection = math.random(1,2) if ydirection == 1 then ycoord = math.random(15,40) else ycoord = math.random(-40,-15) end local liveplayers = getAlivePlayers () if (table.getn( liveplayers ) > 0 ) then local lowestcount = 99999 local lowestguy = nil for PKey,thePlayer in ipairs(liveplayers) do if isElement(thePlayer) then if (getElementData (thePlayer, "dangercount")) and (getElementData(thePlayer, "zombieProof") ~= true) and (getElementData(thePlayer, "alreadyspawned" ) == true) then if (getElementData (thePlayer, "dangercount") < lowestcount) then local safezone = 0 local gx, gy, gz = getElementPosition( thePlayer ) local allradars = getElementsByType("radararea") for theKey,theradar in ipairs(allradars) do if getElementData(theradar, "zombieProof") == true then if isInsideRadarArea ( theradar, gx, gy ) then safezone = 1 end end end if safezone == 0 then lowestguy = thePlayer lowestcount = getElementData (thePlayer, "dangercount") end end end end end pacecount = pacecount+1 if isElement(lowestguy) then triggerClientEvent ( "Spawn_Placement", lowestguy, ycoord, xcoord ) else pacecount = pacecount+1 end else pacecount = pacecount+1 end else pacecount = pacecount+1 end end else -- ADDED BY ME end -- ADDED BY ME end And another question, how can I paste the code with color in functions?
  9. Well.. Hi again everybody I'd like to know if there is something like this "if (time >= 00:00) and (time < 09:00)" (I guess this is 100% wrong but it's an example..) I want to add this in spawn of zombies, I want them only in the night... There is something I can do? Thanks you all!
  10. It situates the camera in&from the feet to the sky I'm doing first person shooter mode and I want this:
  11. OOOOOOOhhh yeaaah >.< THANKS!!!! I was so frustrated D= Thanks!!! *-*
  12. I have done this script but it doesn't work... I've tried in many ways before than this, but anything happens in anyway (client) function visionn() local vTeam=getPlayerTeam(playerLocalPlayer()) if getTeamName(vTeam)=="FA" then if(getCameraGoggleEffect == "normal") then setCameraGoggleEffect("nightvision") outputChatBox ( "*nocturna activadas*", 255, 0, 0, true) elseif(getCameraGoggleEffect == "nightvision") then outputChatBox ( "*nocturna desactivadas*", 255, 0, 0, true) setCameraGoggleEffect("normal") end else end end addCommandHandler("gafasvn", visionn) bindKey ("b", "down", "gafasvn") function visiont() local vtTeam=getPlayerTeam(playerLocalPlayer()) if getTeamName(vtTeam)=="PSG" then if(getCameraGoggleEffect == "normal") then outputChatBox ( "*térmica activadas*", 255, 0, 0, true) setCameraGoggleEffect("thermalvision") elseif(getCameraGoggleEffect == "thermalvision") then outputChatBox ( "*térmica desactivadas*", 255, 0, 0, true) setCameraGoggleEffect("normal") end else end end addCommandHandler("gafasvt", visiont) bindKey ("b", "down", "gafasvt") Somebody can help me please? thanks!!
  13. Hi everybody I want lower angle in players camera (vertical axxis).. I believe that default is 180(quasi) in the vertical axxis... from top to floor And I'd like lower like 150... I don't know.. There is something that I can do? and in horizontal axxis? 180º would be nice.. Thanks!! (Sorry about my english D: )
  14. yeeeaah :3 PERFECT!! =D thank you so much *-*
  15. Hi How can i do: car = createVehicle ( 571, x, y+1.5, z) this is from a resource, it works but i want it with hydraulics (toggled on if it's possible) and nitro x10... it's possible? (Kart+hydraulics+nitro x10)? thanks
  16. thaaanks! I had this question since a lot of time I'm so grateful thank you all!
  17. thanks!! Solved! I have got a question... if the script is type="client" people can see other people in invisibility mode? only i will be invisible in my screen? or for all players?
  18. Well... Hi everybody! I need some help to do this script, I want a key (n) for set on/off invisivility (alpha 255->20; 20->255) only if you're in team "PSG" This is what I have done, but it isn't works, I know how set it on/off with different commands or binds (but i want the same bindkey to "on" and "off") function invisible() for i, player in ipairs(getElementsByType("player")) do genTeam=getPlayerTeam(player) if getTeamName(genTeam)=="PSG" then if (getElementAlpha(player) == 255) then setElementAlpha(getLocalPlayer(), 20) outputChatBox ( "*Activado*", player, 255, 0, 0) else setElementAlpha(getLocalPlayer(), 255) outputChatBox ( "*Desactivado*", player, 255, 0, 0) end else end end end addCommandHandler ( "invi", invisible ) bindKey ("n", "down", "invi") I've tried it in 10000 ways before... -.- some help please? (I'm noob scripting so...) thank! sorry for my english
  19. LOOOL xDDD thanks IIYAMA, I believe you because my server has a lot of mods.. (hundreds... is not joke ) I guess there is no solution (without deleting mods)
  20. no But what I don't know is why it works good before, and now it's bugged... maybe it isn't a problem of the created map because the default items of san andreas interiors like punching bags of gyms and furniture from houses are "ghost" too I have thought "maybe one resource is doing that?" but i don't believe it, the game's files are correct because when play normal game or I test the map in the editor everything is ok thanks for reply
  21. I don't know how but it's a small map...yeah, i've tried it
  22. I've check it and interior=0 but even some furniture in default map is bugged too, in houses, offices, gym, "ghost mode" ._. without collision...
×
×
  • Create New...