if I have maps that rotate and on one of the maps I want a parachute, how do I do that?
weapon_parachuter
Run this server side and fill in the map name:
[lua]
hook.Add("PlayerSpawn", "PlayerSpawGiveWeapon", function(pl)
if game.GetMap() == "MapName" then
pl:Give("weapon_parachuter")
end
end)
[/lua]
I have not tested the code but it should work.
[QUOTE=P.Tigris;38702006]Run this server side and fill in the map name:
[lua]
hook.Add("PlayerSpawn", "PlayerSpawGiveWeapon", function(pl)
if game.GetMap() == "MapName" then
pl:Give("weapon_parachuter")
end
Thanks :D
end)
[/lua]
I have not tested the code but it should work.[/QUOTE]
[QUOTE=acommentator;38706511][QUOTE=P.Tigris;38702006]Run this server side and fill in the map name:
[lua]
hook.Add("PlayerSpawn", "PlayerSpawGiveWeapon", function(pl)
if game.GetMap() == "MapName" then
pl:Give("weapon_parachuter")
end
Thanks :D
You're welcome.
end)
[/lua]
I have not tested the code but it should work.[/QUOTE][/QUOTE]
Sorry, you need to Log In to post a reply to this thread.