Coder Social home page Coder Social logo

basewars's Introduction

A free yet supported BaseWars gamemode.

Go here for more information.

Documentation:

(SHARED)
Entity:GetPrice() -> Returns the price the entity on the store.
Player:GetFaction() -> Returns the name of the player's faction and a table containing all the relevant information about it (Passwords are only accessible from the SERVER).
Player:CanRaid(Player victim)
Player:IsPartakingRaid() -> Returns 1 if the player is raiding and 2 is he's being raided.
Player:IsRaiding(Player player)
Player:IsRaidable()
BaseWars.GetRaid() -> Returns global raid data, you shouldn't need to use this.
BaseWars.FindPlayer(String name) -> Attempts to find a player by his name.
BaseWars.FormatMoney()
string.MaxLen(String string, Integer length) -> No need to explain this one.
Player:CanAfford(Integer amount)
Player:GetMoney()
Player:ReachesLevel(Integer level)
Player:GetLimitXP() -> How much XP the level the player is currently in requires.
Player:GetRequiredXP()
Player:SetLevel(Integer level)
Player:IsAlly(Player player)
BaseWars.GetAllFactions()
Player:InsertInFaction(String name)
Entity:IsBuyable(String name) -> Returns the whether the entity is the store or not.
BaseWars.GetChatCommands() -> Returns all chat commands.

(SERVER)
Player:AddMoney(Integer amount)
Player:RemoveFromFaction()
Player:SpawnInFront(String class)
Player:SetupVars()
Player:SaveData()
Player:AddXP(Integer amount)
BaseWars.SaveDatabase(Player player, String data) -> Don't use it.
BaseWars.Notify(Player target, Integer type, Number time, String message) -> Standard notification.
BaseWars.AddNotification(Player target, Integer type, String message) -> Notification board.
BaseWars.StopRaid()
BaseWars.StartRaid(Player victim, Player attacker)
BaseWars.AddChatCommand(String command, String description, callback)
BaseWars.AddSync(String identifier, callback) -> Acts like a hook, calling the specified function everytime a player loads/reloads. (MIGHT REMOVE OR CHANGE BEHAVIOR)
BaseWars.EndSync(String identifier) -> Stops the above from happening. (MIGHT REMOVE)
GM:PlayerLoaded(Player player) -> Hook for when the player's game loads.

(CLIENT)
BaseWars.Notify(Integer type, Number time, String message) -> Standard notification, notifies the client It's being called on.
BaseWars.AddNotification(Integer type, String message) -> Notification board, notifies the client It's being called on.
draw.Circle(Number x, Number y, Number Radius, String texture, Color color)

basewars's People

Contributors

n00bmobile avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.