Jump to content

matito6

Members
  • Posts

    112
  • Joined

  • Last visited

Everything posted by matito6

  1. when you type /push Euro, nothing happens. Why ? script is running
  2. Or give you a link to these files and if you could change what you need in lua and xml. Link:
  3. Let me give you the contents of .xml file and .lua xml : "Euro" type="script" name="push" /> "meta.xml" type="server"/> Lua : function pushim (thePlayer, commandName, ...) local player = findPlayer(...) if (not player) then outputChatBox("* /push: player not found", thePlayer) return end if isPedInVehicle(player) then local vehicle = getPedOccupiedVehicle(player) x,y,z = getElementVelocity(vehicle) setElementVelocity ( vehicle, x, y, z+0.30) outputChatBox( getPlayerName(thePlayer).. " Push " ..getPlayerName(player), getRootElement(), 255, 255, 0, true) end end addCommandHandler("push", pushim) function findPlayer(namepart) local player = getPlayerFromName(namepart) if player then return player end for _,player in ipairs(getElementsByType("player")) do if string.find(string.gsub(getPlayerName(player):lower(),"#%x%x%x%x%x%x", ""), namepart:lower(), 1, true) then return player end end return false end
  4. Still does not work. I did restart, refresh, and nothing. I do not know what's going on?! Can you help?
  5. What could I do wrong? meta.xml is well, lua is also well done. So what is wrong?! please Help
  6. still the same (Resource could not be found) will help? I do not know how to do it, and I care about this why is not working: (? @Solidsnake14 Could you do me this script? Please, I'm green at this: ( Edit: guys! script to push off, but it does not work when you type /push Euro, you know why?
  7. as part of the console, push start, writes: Resource could not be found, what I did wrong!
  8. meta.xml well done but will not turn on the script. What wrong have I done? I give what I have written in .lua : function pushim (thePlayer, commandName, ...) player = findPlayer(...) if not player then outputChatBox("* /push: player not found", thePlayer) elseif isPedInVehicle(player) then local vehicle = getPedOccupiedVehicle(player) x,y,z = getElementVelocity(vehicle) setElementVelocity ( vehicle, x, y, z+0.30) outputChatBox( getPlayerName(thePlayer).. " Push " ..getPlayerName(player), getRootElement(), 255, 255, 0, true) end end addCommandHandler("push", pushim) function findPlayer(namepart) for i, player in ipairs(getElementsByType("player")) do local name = getPlayerName(player) if string.find(name:lower(), namepart:lower(), 1, true) then return player, name end end return false end Edit: as part of the console, push start, writes: Resource could not be found, what I did wrong!
  9. meta.xml well done? : "Euro" type="script" name="push" /> "meta.xml" type="client"/>
  10. Sorry, but you could tell me where to upload? I know that to. lua and then meta.xml but I do not know how to do meta.xml. Could someone send me the script ready? Or tell me how to do it ok?
  11. Where it all, upload, as you wrote? : (
  12. Hi. I would like you to ask you here or on GG(ICQ): 39955854 ,sent me the script ready, "Push" I do not know how to do it. I would also like to work on a type /push Euro or the console (bind)
×
×
  • Create New...