Jump to content

babecka

Members
  • Posts

    6
  • Joined

  • Last visited

babecka's Achievements

Vic

Vic (3/54)

0

Reputation

  1. I have an idea of a new server. I'd like to create a something-like-RPG server based on pirates! What does it mean? Water, ships, crews, rum, treasures and so on. It would be set into the 17-18 century. I already started to map the major island, called Rocky Bay. It has 2 ports for ships. What are crews? They are actually clans like on RPG servers. Crews can receive rewards like a crew ship, an own island and many others. Everyone could use ships, however, crews get various benefits. There are also classes. Buccaneer, Traveller, Merchant and Captain. These also have their own benefits. Buccaneer can steer faster. Merchant have reduced prices at Port Merchant (the ones who sell goods). There would also be various missions. Go there, find that and so on. Your class actually doesn't determine what you can and what you can't do. For example: a buccaneer can do illegal missions, so can the merchant or the traveller. Ofcourse, there is a 'law' or 'police' team which keeps the waters safe. These are called the Captains. No more information about them right now. I also plan to edit some weapons. I'd like to use only the Country Rifle (custom skin), the Sawn-off (custom skin), the katana and the knife as weapons. The rifle would be strong, but would take long to reload. The sawn-off would be not that strong, can only hold one pellet, but reloads faster. What do you think about this? Should I continue, or should I discard this plan. By the way, I'm not really an experienced scripter, but could manage to do what I listed here. Images of Rocky Bay:
  2. Hello everybody! Is it safe to map beyond the borders of the GTA map? If not, what are the problems with it? Thank you in advance.
  3. babecka

    Players

    Thank you for the reply. The zero is just for testing purposes, because I have no one to test it with.
  4. babecka

    Players

    Hello. I've this code: function onDeath() alive = getAlivePlayers() if getPlayerCount() <= 0 then outputChatBox("You can not receive your reward because there are not enough players!", source, 255, 0, 0) else if alive >= 3 then local reward = math.random(2000, 3000) local points = math.random(20, 40) givePlayerMoney(source, reward) setElementData(source, "points", getElementData(source, "points") + points) outputChatBox("You have been killed and you won $" .. reward .. " and " .. points .. " points!" , source, 255, 255, 0) elseif alive <= 3 then local reward = math.random(2500, 3000) local points = math.random(40, 60) givePlayerMoney(source, reward) setElementData(source, "points", getElementData(source, "points") + points) outputChatBox("You have been killed and you won $" .. reward .. " and " .. points .. " points!" , source, 255, 255, 0) elseif alive == 1 then local reward = math.random(3500, 4500) local points = math.random(80, 100) givePlayerMoney(source, reward) setElementData(source, "points", getElementData(source, "points") + points) outputChatBox("You have been killed and you won $" .. reward .. " and " .. points .. " points!" , source, 255, 255, 0) end end end The problem is, no message shows up and I don't get the money/points. I get this error: attempt to compare number with table I had the same error with this code: if getPlayerCount() <= 0 then but I've added the () and it fixed the error. However, it doesn't fix it in this case. I tried to remove the variable alive and put getAlivePlayers() instead of it, but it gave me the same error. How do I get this to work?
  5. babecka

    Button

    Thank you! Fixed it.
  6. babecka

    Button

    Hello. I've a problem with my account login and registration. I wanted to make one button, which would determine if you are registered or not. When I enter an unregistered username, it registers me, but the chat shows the message: "The combination you have entered is not correct. Please, try again." first, but registers me and the second time I hit the button it logs me in. How do I make that when I hit the button for the first time, I'll be registered, logged in and the message won't appear? -- Server addEvent( "submitLogin", true) function loginHandler(username, password) local account = getAccount (username, password) local newAccoun = getAccount(username) if account then logIn(source, account, password) triggerClientEvent(source, "displayGUI", source) else outputChatBox("The combination you have entered is not correct. Please, try again.", source, 255, 0, 0) end addAccount(username, password) if(logIn(source, account, password) == true) then triggerClientEvent(source, "displayGUI", source) end end addEventHandler("submitLogin", root, loginHandler)
×
×
  • Create New...