Jump to content

~DarkRacer~

Members
  • Posts

    130
  • Joined

  • Last visited

Everything posted by ~DarkRacer~

  1. i can't edit destructionderby.lua why?
  2. it was : if getActivePlayerCount() <= 1 then i changed it to: if getActivePlayerCount() <= 0 then but didn't work
  3. in the race mode: i want to make that when the "last survival" message comes up Do Not Start New Vote Map until the last player dies. does anyone know where are the files that need to edit on and what functions should i use to stop this, thx.
  4. is there anyway i can store the teams in XML file like: ?
  5. lol that's what i thought thx
  6. and what event i will use?
  7. What do u mean? i create teams from Admin Panel 'P'.
  8. Why all of the teams deleted when the server is restarted?
  9. Thank You Anony. and Thank You Solidsnake14 the code is working fine but there's only one little bug --> the vehicle is hidden but the ped is shown and it's really annoying
  10. I'm a DM player and i'm making this mod because the members of my server are complaining from the cars (they want it to be hidden to play much better). i want to make the player whenever HE press F2 all player will be hidden only for him he will not see any car.
  11. ok i will make it server side and i will put the 'for loop' but how can i get the current player since i'm coding in server side? i tried 'source' but i didn't work any solution?
  12. local car = getPedOccupiedVehicle(getLocalPlayer()) local carV = getElementAlpha(car) outputChatBox("Press ~[F2]~ to Show/Hide vehicles.",0,166,255, true) bindKey("F2", "down", function() if (carV == 0) then setElementAlpha(car, 255) outputChatBox("[iNFO] the vehicles are visible now.",166,255,6) elseif (carV == 255) then setElementAlpha(car, 0) outputChatBox("[iNFO] the vehicles are invisible now.",255,100,0) end end )
  13. i fixed the problem.. i didn't change the script to server it's now working on client. but i've got two more issues: 1. Whenever i press the button (i changed it to F2) it makes the car invisible and display a message in chatbox that the cars now are invisible; but when i press F2 again to show the vehicles nothing happened and it display a message says that the vehicles are invisible AGAIN. 2. only my car is invisible and the other cars are shown in the server.
  14. i made this script and i don't know what's wrong, please help: -- ClientSide local car = getPedOccupiedVehicle(getLocalPlayer()) local carV = getElementAlpha(car) bindKey("F1", down, function() if (carV == 0) then setElementAlpha(car, 1) outputChatBox("[iNFO] the vehicles are visible now.",166,255,6) elseif (carV == 1) then setElementAlpha(car, 0) outputChatBox("[iNFO] the vehicles are invisible now.",255,100,0) end end )
  15. ~DarkRacer~

    HELP :D

    it's me again, is there function or event that can return an integer(number) of the current car visibility.
  16. okay i'll try to make the script by myself if there's anything wrong i'll post the code.
  17. can anyone make a code that whenever a player joins a server he automatically join a team like: if there is a team called : -GS- then the player joins the team only if his nickname contains (-GS-) thx
  18. Thanks Anderl i'm really learning new stuff but i have a question : how can i make sure if the pickup is a "VehicleChange"?
  19. Ok thanks for the advice, so what do you think i should do?
  20. What do you mean by server? it's already on server side.
  21. It didn't work this is the code: addEventHandler( "onPlayerPickUpRacePickup", root, function() if ( getPlayerTeam ( getLocalPlayer() ) ) then local r, g, b = getTeamColor ( getPlayerTeam ( getLocalPlayer ) ) setVehicleColor ( getPedOccupiedVehicle(getLocalPlayer()), r, g, b ) end end )
  22. hi, the code is working just fine ... but i noticed an issue: whenever i hit a VehicleChange pickup the color of the car changes to a random one i hope if there's any other event can solve this issue.
×
×
  • Create New...