Jump to content

Albinix

Members
  • Posts

    48
  • Joined

  • Last visited

Everything posted by Albinix

  1. can u use this to drive upsidedown? https://wiki.multitheftauto.com/wiki/SetVehicleGravityPoint
  2. Albinix

    Markers

    how to make when you hit the blue marker your gravity will be normal (0.008) and when you hit the red marker your gravity will be half as normal (0.004) createMarker ( 4000, -460, 25, "corona", 3, 0, 0, 255, 255 ) createMarker ( 4040, -460, 25, "corona", 3, 255, 0, 0, 255 ) function MarkerHit( thePed ) setPedGravity ( thePed, 0.008 ) end addEventHandler( "onMarkerHit", getRootElement(), MarkerHit ) function MarkerHit( thePed ) setPedGravity ( thePed, 0.004 ) end addEventHandler( "onMarkerHit", getRootElement(), MarkerHit )
  3. where to read that?
  4. Albinix

    votemap

    on race gamemode when a map is finish the vote panel apper and tell: 1. somemap 2. somemap 3. somemap 4. somemap 5. somemap 6. somemap 7. somemap 8. somemap 9. play again are they any way to make it do 1. random and 2. play again?
  5. this is my team script but the teamcarcolor function don't work, everything else works fine =) function createTeamsOnStart () teamAdmins = createTeam ( "Admins", 255, 100, 0 ) teamMembers = createTeam ( "Members", 34, 139, 34 ) teamGuests = createTeam ( "Guests", 255, 255, 255 ) end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), createTeamsOnStart ) addEventHandler( "onPlayerJoin", root, function() setPlayerTeam ( source, teamGuests ) end ) addEventHandler( 'onPlayerLogin', root, function() if isObjectInACLGroup( 'user.'..getPlayerName( source ), aclGetGroup( 'Admin' ) ) then setPlayerTeam ( source, teamAdmins ) else setPlayerTeam ( source, teamMembers ) outputChatBox('* LOGIN: ' .. getPlayerName(source) .. ' has logged in', 34, 139, 34, true) end; end ); function teamcarcolor() local theTeam = getTeamFromName ( teamAdmins ) if ( teamAdmins ) then local players = getPlayersInTeam ( teamAdmins ) for playerKey, playerValue in ipairs ( players ) do setVehicleColor ( players, 0, 0, 0, 0 ) end end end
  6. If you are in teamAdmins your car will be black but this don't work? function teamcolor () local players = getPlayersInTeam ( teamAdmins ) local vehicle = getPedOccupiedVehicle( players ) if ( vehicle ) then setVehicleColor ( vehicle, 0, 0, 0, 0 ) end end setTimer ( teamcolor, 100, 0 )
  7. Albinix

    Teams

    function createTeamsOnStart () teamAdmins = createTeam ( "Admins", 255, 100, 0 ) teamMembers = createTeam ( "Members", 0, 0, 255 ) teamGuests = createTeam ( "Guests", 255, 255, 255 ) end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), createTeamsOnStart ) addEventHandler( "onPlayerJoin", root, function() setPlayerTeam ( source, teamGuests ) end ) addEventHandler("onPlayerLogin", root, function() if isObjectInACLGroup( 'user.Albinix', aclGetGroup( 'Admin' ) ) then setPlayerTeam ( source, teamAdmins ) else setPlayerTeam ( source, teamMembers ) end end) this one works what have you changed?
  8. Albinix

    Teams

    what should i chanhge to???
  9. Albinix

    Teams

    i have a problem i want to be when admin login he's get into admins team and when a member login he's get in the members team, but when a member login they get into admin team why? function createTeamsOnStart () teamAdmins = createTeam ( "Admins", 255, 100, 0 ) teamMembers = createTeam ( "Members", 0, 0, 255 ) teamGuests = createTeam ( "Guests", 255, 255, 255 ) end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), createTeamsOnStart ) addEventHandler( 'onPlayerJoin', root, function() setPlayerTeam ( source, teamGuests ) end ) addEventHandler( 'onPlayerLogin', root, function() if isObjectInACLGroup( 'user.Albinix', aclGetGroup( 'Admin' ) ) then setPlayerTeam ( source, teamAdmins ) else setPlayerTeam ( source, teamMembers ) end end )
  10. Albinix

    colorpicker

    ok thanks when it's a new map the lights will turn of (it's on a racemode server)
  11. Albinix

    Carcolor

    hello i want to make a script when you connect to the server your car is black. and if you type /red the car will be red (i'm gonna add more colors later) so i wonder how to kill the timer so when you type /red the car will be red? function VehColor() for i, car in ipairs( getElementsByType( "vehicle" ) ) do setVehicleColor ( car, 0, 0, 0, 0 ) end end setTimer( VehColor, 500, 0 ) function VehColorred( player, command ) for i, car in ipairs( getElementsByType( "vehicle" ) ) do setVehicleColor ( car, 3, 3, 3, 3 ) end end setTimer( VehColorred, 500, 0 ) addCommandHandler("Red",VehColorred) addEventHandler ( "onResourceStart", getRootElement(), VehColor )
  12. Albinix

    colorpicker

    how can i make this to change headlight color? https://community.multitheftauto.com/index.html?p=resources&s=details&id=639
  13. Albinix

    Static

    hello i wonder why the stone don't be nonstatic? function mapLoad ( name ) object1 = createObject ( 1305, 4419.4697265625, -1398.5142822266, 175.98091125488 ) move1_1 () end function move1_1 () setObjectStatic ( object1, false ) end addEventHandler ( "onResourceStart", getRootElement(), mapLoad )
  14. Albinix

    vehiclecolors.conf

    In vehiclecolors.conf can i make something like "random 1-126" insted of writing compinations, like 23 45 and so?
  15. I have 32 spawn points and i want the players spawn random on the spawnpoints not in the order the spawn points are placed in map editor
  16. Hello I have a race server and i wana know how to make the spawnpoints random allways. Not in order.
  17. Hmm, you must be in a car while login. Or you wanna change color of all existing vehicles on the server ? No when i login as admin i want my car black. And it's on a racemod server so i always in a car.
  18. Dosen't work, when i login nothing happends
  19. I don't know what you mean by that question.. The script changes headlight colours randomly. like when a admin login it changes his car color to black for example, but when someone else login it dosen't changes his car to black.
  20. Albinix

    Spawnpoint

    on race gamemode it is some way to make the spawn points random insted of how you have placed them? like map editor you start at random spawnpoint but when you put it on a server you start in the order you have placed the spawn points
  21. how to make it work for only one group? example admin
  22. Hello i wonder how to make this script work for only admins? And how to add Headlightcolor to this script? function randomVehColors() for i, car in ipairs( getElementsByType( "vehicle" ) ) do local color = {} color[1] = math.random(0,126) -- random from 0 to 126, because colors is from 0 to 126 color[2] = math.random(0,126) color[3] = math.random(0,126) color[4] = math.random(0,126) -- we take 4 random numbers because setVehicleColor have parameters with 4 colors setVehicleColor ( car, color[1], color[2], color[3], color[4] ) -- setting color to vehicle end end setTimer( randomVehColors, 500, 0 ) -- timer changes all vehicles colors to random every 0.5 sec.
×
×
  • Create New...