Jump to content

GamerDeMTA

Members
  • Posts

    559
  • Joined

  • Last visited

Everything posted by GamerDeMTA

  1. I need help with this! function enterVehicle ( thePlayer, seat, jacked ) -- when a player enters a vehicle if getElementType ( thePlayer ) == "player" then local p = getTeamName(getPlayerTeam(thePlayer)) if (p == "xd") then else removePedFromVehicle( thePlayer )-- force the player out of the vehicle --Here's the problem! ^^^^^^ end end end addEventHandler ( "onVehicleEnter", getRootElement(), enterVehicle ) It works fine but it's a bit 'ugly' that. i saw in a server that when you try to enter in a vehicle of police and u aren't police, you can't just enter. But with this script the problem is that you can enter, and when u are in the vehicle, and not in the team, it just spawns you up of the vehicle. that's a bit ugly =/ can't i do that he can't just enter?
  2. For save the Team of a player into an account and when he quit and come back, the sv sets his team back?
  3. I saw it in a server not community
  4. It isn't impossible I saw it in some servers, when its your first login you spawn in somewhere Anyways thanks for the help
  5. I mean for check if it's his first login
  6. And how to do it to the nearest Hospital?
  7. Hello. I need help with this. I want to do that, when it's the player first Login in the server, he spawns in Grove ST. I only know I need to use this: setElementPosition but how to know if it's his first Login?
  8. Hey! I need help this time, in how to warp a person when he dies to the nearest hospital. I only know I need to use onPlayerWasted setElementPosition and more things, what I need is how to do that is to the Nearest Hospital!
  9. but getPedWeapon is by slot and i want only 1 weapon not all of slot, isnt possible with ID?
  10. Hi, I want to do this: *A script which check if you have more than 5 GRENADES, and if you have more than 5 Grenades, it set it to only 1 grenade.
  11. oh sorry I always post there I didn't see. but can't i resize it for when i enter mta always? because with my old resolution it was smaller.
  12. Is it possible to resize it for do that when I press F8 when I open MTA it's "small"? because I changed resolutions 1 times and set original back and now the F8 is... Big
  13. thanks. but why in table.concat i must put ", " after color ?
  14. thanks. oh and u know how to do this? I wanna do this: the sky gradient changes but there's an outputChatBox which says: outputChatBox("new color: --it outputs the color chosen here--") but how to? I wanna get what color of the table was got by the script.
  15. how to do it then ? instead strings? I tried with this: ta = { {255,0,0}, {0,255,0} } it didnt work idk how to do it
  16. it doesn't work. ta = { '255,0,0', '0,255,0'} setTimer ( function ( ) setSkyGradient ( ta[ math.random( #ta ) ]) end, 10000, 0 )
  17. GamerDeMTA

    Question

    Hi, I wanna create something that changes the sky gradient each 10 seconds for other (random sky Gradient). How to? I need tables for the random skys or what
  18. GamerDeMTA

    Question

    Hi, I wanna know something. **You can get the password of someone in your server? or in the files? or in-game?? or they are protected? [i hope they're protected ]
  19. debugscript 3 don't say nothing. no one knows the error???'
  20. Problem is it doesn't output a message
  21. function xde ( ) outputChatBox("xDD. !!", root, 255, 0, 255, true) end addCommandHandler("x",xde)
×
×
  • Create New...