Jump to content

MiniGoveya

Members
  • Posts

    84
  • Joined

  • Last visited

Everything posted by MiniGoveya

  1. Solid Ok, I appreciate your help, but such a rare thing, the script does not work. This time I put the script as you told me, but this is what happens: Then, the script is as follows: givecar.lua local distance = 5 function giveCar ( thePlayer, command, ... ) if hasObjectPermissionTo (thePlayer, "command.banserial") == true then local x, y, z = getElementPosition ( thePlayer ) local rotZ = getPedRotation ( thePlayer ) local vehicleName = table.concat({...}, " ") local vehicleID = getVehicleModelFromName ( vehicleName ) if vehicleID then local newVehicle = createVehicle ( vehicleID, x, y, z, 0, 0, rotZ ) warpPedIntoVehicle(thePlayer,newVehicle) if not newVehicle then outputConsole ( "Failed to create vehicle.", thePlayer ) end end end end addCommandHandler ( "givecar", giveCar ) Then the meta.xml is as follows: meta.xml <meta> <info author="minigoveya" type="server" version="1.0.0" /> <script src="givecar.lua" type="script" /> </meta> what did wrong? P.S: Excuse me, you and everyone who helped and are helping me, for her persistence and my questions.
  2. I think you have to go so fast and crash with the mines Try it. EDIT: Put alot of mines. EDIT2: It is preferably to use heavy trucks, such as a dumper as our friend mentioned above.
  3. Ok, try putting the same code as here: local distance = 5 function giveCar ( sourcePlayer, command ) if hasObjectPermissionTo (thePlayer, "command.banserial") == true then local x, y, z = getElementPosition ( sourcePlayer ) local rotZ = getPedRotation ( sourcePlayer ) x = x + ( ( math.cos ( math.rad ( rotZ ) ) y = y + ( ( math.sin ( math.rad ( rotZ ) ) local vehicleName = table.concat({...}, " ") local vehicleID = getVehicleModelFromName ( vehicleName ) if vehicleID then local newVehicle = createVehicle ( vehicleID, x, y, z, 0, 0, rotZ ) if not newVehicle then outputConsole ( "Failed to create vehicle.", sourcePlayer ) end end end end addCommandHandler ( "givecar", giveCar ) The only thing that changed were the comments and modify the command to run the script. but this happen: What i did wrong?
  4. Good evening, this time come with a question about scripting from the 0. My question is: How I can I create a command to give any vehicle? Something like /givecar minigoveya hunter However, it would all MTA vehicles. Can you tell me how can i create that? or, if you can create? I await your reply eagerly. Until then, see you soon around here.
  5. Oh well, excuse me for being noob -.- just came here to ask for help, and if I'm not as experienced in scripting as you forgive me. to say goodbye, I thank whoever is the way I want. : S Solid thank u so much. ;]
  6. Ohhhhhhhh! Thanks you so much man ! you're big man and big scripter
  7. Ok, sorry, I changed that and stay this way: But, this happens: I was wrong again?
  8. Hello MTA Community, I created a script of commands for the MTA, but when I put the hex code for the color of the message does not change color, is the same color, ie no change. What should I do? Here I give a part of the script to tell me I did wrong. function hey ( playerSource, command ) outputChatBox("'"..getPlayerName( playerSource ).." Heeey!!!""getRootElement(), 255, 242, 0, true ) end addCommandHandler ( "hey", hey ) another thing, I want when the command run, the message says this: <088A85MiniGoveya> Says Heeeyy! How I can make that happen? Fist NOTE: I want the message with color yellow. Help me please. Second NOTE: Not if the code is there, is correct. If not, please put what it is.
×
×
  • Create New...