Okay, i am making a game-mode right now called - MW2 Multi-player Beta -
I am in need of someone who could help me make an unlock system threw gaining experience.
You would gain experience by killing and completing objectives.
I have an exp system, but i don't know how to make an unlock system and i would also need a menu.
If you are willing to help with the unlock system or menu or help me with the game-mode itself please message me.
I can post more details if some-one wants me too.
P.S. my other game-modes have failed or been flamed to much lol.
Play CSS instead or just go play your shitty MW2 on your little consoles.
[lua]
XP_ADDEDLEV = 1
XP_MAXLEVEL = Table.Count(ranktogun)
XP_DEFAULT = {"weapon_physgun", "gmod_tool"}
function GM:PlayerInitialSpawn( ply )
if !ply:GetPData("curlev") then
Msg("No Level Found, Defaulting To Level 1")
ply:SetPData("curlev", 1 )
end
end
function GM:PlayerDeath( victim, damager, killer )
killer:SetPData("curlev", killer:GetPData("curlev") + XP_ADDEDLEV
OnLevelUp(killer:GetPData("curlev"))
end
weapons = {}
ranktogun = {
ranktogun[1] = "weapon1"
ranktogun[2] = "weapon2"
ranktogun[3] = "weapon3"
ranktogun[4] = "weapon4"
ranktogun[5] = "weapon5"
}
--On Level Up
function OnLevelUp( curlevel )
Table.Add(weapons, ranktogun[..curlevel..])
end
if SERVER then
function GM:PlayerLoadout( ply )
for k,v in pairs (weapons) do
ply:Give(v)
end
for k,v in pairs(XP_DEFAULT) do
ply:Give(v)
end
end
[/lua]
Im a big fail with lua but its a attempt, someone will probably overhaul my shitty script that probably dont work.
[editline]13th March 2011[/editline]
@Killover, he can make what he wants and who are you to question that.
Also, this is the garrysmod section, he can make something for garrysmod and not have to play a different game, he can also customise this easier than mw2 or CSS.
Learn to Tab
What do you mean by Learn To Tab???
I believe he's referring to your inadequate use of whitespace.
Oh well i typed this up on the thread, i do tab when coding in notepad++
Sorry, you need to Log In to post a reply to this thread.