Jump to content

manawydan

Members
  • Posts

    980
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by manawydan

  1. i download new version and work. thx has an error in the wiki "exprots" addCommandHandler ( "getleveldata", function ( thePlayer ) local level = exprots.exp_system:getPlayerLevel ( thePlayer ) local name, expreq = exports.exp_system:getLevelData ( level ) outputChatBox ( name ..": ".. expreq, thePlayer ) end )
  2. addEvent("onZombieSpawn",true) addEventHandler("onZombieSpawn",root, function ( ) local myBlip = createBlipAttachedTo ( source, 0 ) end) no work
  3. addCommandHandler ( "getleveldata", function ( thePlayer ) local level = exports.exp_system:getPlayerLevel ( thePlayer ) local name, expreq = exports.exp_system:getLevelData ( level ) outputChatBox ( name ..": ".. expreq, thePlayer ) end ) call: failed to call 'exp_system:getLevelData' [string "?"]
  4. addEvent("onZombieSpawned",true) addEventHandler("onZombieSpawned",root, function ( ) local myBlip = createBlipAttachedTo ( source, 0 ) end)
  5. blip as putting in all living zombies?
  6. manawydan

    move ped

    Thank you. can close the topic
  7. manawydan

    move ped

    an example of what I want to do addEventHandler("onPlayerDamage", root, function(attacker, weapon, bodypart, loss) x, y, z = getElementPosition(source) if ( getElementData ( attacker, "zombie", true)) then movePed(source, x+2, y+2, z+8) end end)
  8. manawydan

    move ped

    is there any function to push a ped? I want to push a ped when a zombie attacks him.
  9. o mod slothbot coloca um ped ou play como lider. por isso coloquei. acho q li errado. - vlw cara agora o mod funciono function pet(thePlayer) local skinpet = { "43", "44", "45", "46" } local x,y,z = getElementPosition(thePlayer) local rot= 90 local skin=skinpet[ math.random( 1,#skinpet ) ] local interior=inter local dimension=dimen local team=getPlayerTeam ( thePlayer ) local weapon=0 local mode= "following" local modesubject=thePlayer animal = call (getResourceFromName("slothbot"), "spawnBot", x, y, z, rot, skin, interior, dimension, team, weapon, mode, modesubject) setElementData ( thePlayer, "leader", true ) -- agora ta verdadeiro-- end addCommandHandler( "pet", pet) - @Edit: Removendo double-post e mesclando postagens.
  10. eai pessoal, blz. eu tava tentano criar bot para proteger jogadores, mas não consigo coloca os bot em veiculos. alguem pode ajudar? function pet(thePlayer) local skinpet = { "43", "44", "45", "46" } local x,y,z = getElementPosition(thePlayer) local rot= 90 local skin=skinpet[ math.random( 1,#skinpet ) ] local interior=inter local dimension=dimen local team=getPlayerTeam ( thePlayer ) local weapon=0 local mode= "following" local modesubject=thePlayer animal = call (getResourceFromName("slothbot"), "spawnBot", x, y, z, rot, skin, interior, dimension, team, weapon, mode, modesubject) end addCommandHandler( "pet", pet) -- o problema é aq em baixo-- function petvehicle ( thePlayer ) if ( getElementType ( thePlayer ) == "player" and getElementData ( thePlayer, "leader", true ) ) then warpPedIntoVehicle ( animal, source, 1 ) end end addEventHandler ( "onVehicleEnter", getRootElement(), petvehicle )
  11. manawydan

    warp bot

    function pet(thePlayer) local skinpet = { "43", "44", "45", "46" } local x,y,z = getElementPosition(thePlayer) local rot= 90 local skin=skinpet[ math.random( 1,#skinpet ) ] local interior=inter local dimension=dimen local team=getPlayerTeam ( thePlayer ) local weapon=0 local mode= "following" local modesubject=thePlayer animal = call (getResourceFromName("slothbot"), "spawnBot", x, y, z, rot, skin, interior, dimension, team, weapon, mode, modesubject) end addCommandHandler( "pet", pet) function petvehicle ( thePlayer ) if ( getElementType ( thePlayer ) == "player" and getElementData ( thePlayer, "leader", true ) ) then warpPedIntoVehicle ( animal, source, 1 ) end end addEventHandler ( "onVehicleEnter", getRootElement(), petvehicle ) function petvehiclexit ( thePlayer) if ( getElementType ( thePlayer ) == "player" and getElementData ( thePlayer, "leader", true ) ) then removePedFromVehicle ( animal ) end end addEventHandler ( "onVehicleExit", getRootElement(), petvehiclexit ) lol the bot no enter in vehicle
  12. manawydan

    warp bot

    no work function petvehiclexit ( thePlayer) if ( getElementType ( thePlayer ) == "player" and getElementData ( thePlayer, "leader", true ) ) then removePedFromVehicle ( animal ) end end addEventHandler ( "onVehicleExit", getRootElement(), petvehiclexit )
  13. manawydan

    warp bot

    he not exit function petvehiclexit ( ) if ( getElementType ( thePlayer ) == "player" and getElementData ( thePlayer, "leader", true ) ) then x, y, z = getElementPosition(thePlayer) setElementPosition( animal, x+1, y+2, z) setElementInterior ( animal, 0 ) setElementRotacion ( animal, 90 ) end end addEventHandler ( "onVehicleExit", getRootElement(), petvehiclexit ) sorry
  14. manawydan

    warp bot

    thank you very much
  15. manawydan

    warp bot

    Solidsnake14 work. but C stack overflow in console
  16. vlw pessoal vou ver todos os links e aprender , para parar de atrapalhar vcs. kk vlw
  17. manawydan

    warp bot

    function pet(thePlayer) local skinpet = { "43", "44", "45", "46" } local x,y,z = getElementPosition(thePlayer) local rot= 90 local skin=skinpet[ math.random( 1,#skinpet ) ] local interior=inter local dimension=dimen local team=getPlayerTeam ( thePlayer ) local weapon=0 local mode= "following" local modesubject=thePlayer animal = call (getResourceFromName("slothbot"), "spawnBot", x, y, z, rot, skin, interior, dimension, team, weapon, mode, modesubject) end addCommandHandler( "pet", pet) function petvehicle(seat, jacked, thevehicle) if getElementData(source, "leader", true) then warpPedIntoVehicle ( animal, thevehicle, 1) end end addEventHandler ( "onVehicleEnter", getRootElement(), petvehicle )
  18. manawydan

    warp bot

    how can I put a bot in the car, whether it is on the same leader? tried warpPedIntoVehicle
  19. https://community.multitheftauto.com/ind ... ls&id=6277 thank you very much
  20. function jedi(weaponID, Player) local muzzleX, muzzleY, muzzleZ = getPedWeaponMuzzlePosition(Player) local px, py, pz = getElementPosition ( Player ) if weaponID == 8 and isControlEnabled ( player, "fire" ) then local sound = playSound3D("jedi.mp3", muzzleX, muzzleY, muzzleZ, false) setSoundMaxDistance(sound, 40) end end addEventHandler ( "onClientResourceStart", getRootElement(), jedi ) this right? never used isControlEnabled
  21. Congratulations team mta, moderators, mappers, scripters. keep it up! good work
×
×
  • Create New...