• Makeing fretta gamemode.
    2 replies, posted
1. How do you have more than 1 class? 2. How do you make the game randomly pick someone to be one class, and everyone else is the other class? 3. How do make the classes teams, (like, if there is 3 people in class 1, and 1 in class 2, how do you make that show in the scoreboard, and end the round when an entire team/class is dead. 4. This isnt really about the gamemode, but how do you upload to svn in google code? Should I just use garrysmod.org?
[url]http://wiki.garrysmod.com/?title=LUA:Gamemode_from_scratch[/url] [url]http://wiki.garrysmod.com/?title=Lua:Fretta[/url] Have fun. [editline]05:19PM[/editline] As for the randomly picking thingi, I think it would be something with [code]for k, v in pairs (player.GetAll()) do -- something [/code] I dont know how though :/
Random player - [lua]local ply = table.Random( player.GetAll() );[/lua]
Sorry, you need to Log In to post a reply to this thread.