This file was automatically imported from the old site. You can see other imported files on the reuploads page.

Skylord's Pvp

Originally uploaded by [Sithous] Skylo on 9th October 2012 04:33 am

Created by Skylord
-- DESC --
This pvp script makes it so you must be in pvp mode to fight users.
What this script does:
When a user is out of PVP they have god mode on them and cannot take damage from anything.
Once the user turns pvp mode on it gives the user weapons and sets a material so you know that the user is in pvp.
Prevents users from spamming !pvp in the chat, there is a 10 second default timeout (you can configure by editing the script, the config options are at the top)
It also disables noclip for users in PVP to prevent cheating and wont allow you to noclip then go into pvp.
Users not in PvP cannot damage users in PvP.
There is more, can't really think of it right now.
1) Upload or Move the script to the garrysmod/lua/autorun folder.
2) Start / Restart server
-- CONFIG --
To change the scripts config edit the pvpscript.lua and at the top there is the options.
command_timeout = 10 -- Time in seconds to disallow using the pvp command again.
playermaterial = "models/props_combine/tprings_globe" -- Material to use when user goes into pvp, set as "" if you don't want one.
-- HOW TO USE --
It's very easy to use the script. Simply type !pvp to toggle pvp on/off (default is off).
These are all the chat commands:
!pvp -- toggles pvp on/off
!pvpon -- Turns pvp on
!pvpoff -- Turns pvp off
!allpvpon -- Admin command to force all users into pvp
!allpvpoff -- Admin command to force all users out of pvp
!pvpwho -- Displays a list of all users currently in pvp

This download looks like a lua file. You need to place it in your lua folder inside the Garry's Mod folder.

You should end up with a directory structure similar to below:

  • steamapps
    • common
      • garrysmod
        • garrysmod
          • lua
            • autorun
              • pvpscript.lua
              • Readme.txt

Don't know where the Garry's Mod folder is or how to extract zip files? See more useful installation tips.

  • pvpscript.lua
  • Readme.txt