Jump to content

Bananovy

Members
  • Posts

    34
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Bananovy's Achievements

Rat

Rat (9/54)

3

Reputation

  1. Small update. Password got removed, so discord is optional.
  2. Hello there. My name is Eryk and I am working on my server with own gamemode called PROJECT: Speed. Basically, the gamemode is based on racing. However, it is not a typical racing server as you might think. It is inspired by well-known racing games where you have to progress to unlock more things. Currently, there are only few races available placed in Las Venturas. Players have to drive to specific race, find or create a lobby and also racers. If you can't find any opponent, you can try Time Attacks. Other than that, there are Sprints, Circuits and Unordered Races. There are also car classes, but every car can be upgraded to higher class. Server includes car mods and some additional stuff (around 580MB to download). The rest is a little secret which you can discover by yourself . So I am looking for beta testers who want to help me test everything. I guess everyone know what is its purpose. In order to join and read something more about the server: Join to Discord server: https://discord.gg/6PuK8CZ
  3. yourSkin = 1 local model = getElementModel(player) if model == yourSkin then toggleControl(player, "sprint", false) end As I understood this should do
  4. Bananovy

    help

    What about this? local hillArea = createColRectangle ( -2171.0678710938, 678.17950439453, 15, 15 ) function hill_Enter ( thePlayer, matchingDimension ) if getElementType ( thePlayer ) == "player" then local interior = getElementInterior(thePlayer) if interior == 30 and matchingDimension == 30 then local nameOfThePlayer = getPlayerName ( thePlayer ) outputChatBox ( nameOfThePlayer.." entered the zone!", getRootElement(), 255, 255, 109 ) end end end addEventHandler("onColShapeHit", hillArea, hill_Enter)
  5. setSoundMaxDistance(sound, 75) isn't this decreasing the volume as you want?
  6. Bananovy

    Language menu

    I guess everytime when you have to use outputChatBox there should be an "if" to check player's chosen language. if language = "English" then outputChatBox("Something in English") elseif language == "Russian" then outputChatBox("Rush B") end You might also use some tables like this: Language = {} Language.quit = { "You left", -- English has value 1 "Wyszedłeś", -- Second language with value 2 "Any other language"} -- etc. function leaving () outputChatBox(Language.quit[getElementData(localPlayer, "Language")]) end But you have to keep the texts in correct order
  7. Actually the higher vehicle's mass is the slower will decelerate. You can try to set high value for mass in handling when player isn't accelerating.
  8. Okay, I get it now. Well then looks like the best now you can do is to make a small "check" if player has his color already. I did it by using setElementData/getElementData: function setRandomColor() for _,player in ipairs(getElementsByType("player")) do for _,blip in ipairs(getElementsByType("blip")) do local team = getPlayerTeam(player) local r,g,b = math.random(255),math.random(255),math.random(255) if not (team) then local gotHisColor = getElementData(player, "gotRandomColor") or false if gotHisColor == false then setPlayerNametagColor(player,r,g,b) setBlipColor(blip,r,g,b,255) setElementData(player, "gotRandomColor", true) end end end end end setTimer(setRandomColor,50,0)
  9. Okay, so how do you set team for a player?
  10. How does player leave the team? Is he using any command or you do it manually? Another edit: If you just set the team once then use onPlayerLogin. You won't have to check every 50 ms if player is in the team or not.
  11. If you've got your own team script then just set the color when you're using setPlayerTeam. Otherwise you have to make your own kind of detection, because there is no event such as onPlayerJoinTeam. Quick Edit: If your script is setting the team when player login, you can set his color at the same time.
  12. Your setTimer executes every 50 ms, so when player isn't in any team his color is changing every 50 ms. Also you've put those timers outside of the function. It would be better to set the random color exactly when player is leaving the team.
  13. What about getTeamColor and setBlipColor? Normally when player is in the team his nickname is using it's color. If you want to color player's name completly into team's color, you have to remove hex codes from their nicknames
  14. Small tip: You can use ">= 1000" instead of "> 1001". It will mean if player has equal or more than 1000$
  15. First of all you have to open the garage's of Pay'n'Spray. You need setGarageOpen for that. The easiest way to recognize if vehicle is there you can simply create markers (createMarker) inside Pay'n'Spray. setTimer
×
×
  • Create New...