Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Quake1011 committed Nov 3, 2023
1 parent 8a8cef6 commit 13bf16c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

// AVAILABLE ADMIN COMMANDS:
//
// login <password> // Getting admin rights
// @password - admin password taken from "admin_password" key below. Required for using all these commands(string)
//
// kickit <uid> <reason> // kick player
// @uid - userid of client(int) It was any userid or @all text if u want to kick all exclude self
// @reason - reason of kick(string)
Expand Down Expand Up @@ -49,7 +46,7 @@
// @uid - userid of client(int)
// @weapon_classname - classname of weapon which will removed from client currently equipements(string) It was any classweapon or @all text if u want to disarm all weapon of client
//
// killit <uid> // kill player
// slay <uid> // kill player
// @uid - userid of client(int)
//
// changeteam <uid> <team> // change player team
Expand All @@ -60,12 +57,15 @@
// @uid - userid of client(int)
// @status - turn off or turn on the HUD display(bool)(0 / 1)
//
// slap <uid> <hp> // slapped player
// slap <uid> <hp> // slap the player
// @uid - userid of client(int)
// @hp - hp to slap
// @hp - hp of slap
//
// AVAILABLE PLAYER COMMANDS:
//
//
// login <password> // Getting admin rights
// @password - admin password taken from "admin_password" key below. Required for using all these commands(string)
//
// votemap <mapname> // voting to mapchange
// @mapname - name of map for want to vote(string)
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ Convars:RegisterCommand("setmap", function(_, map, chtime)
end
end, nil, 0)

-- slap <uid>
-- slap <uid> <hp>
Convars:RegisterCommand("slap", function(_, userid, hp)
if Players[tonumber(userid)]["userid_pawn"]:IsAlive() == true then
local client = Convars:GetCommandClient()
Expand Down Expand Up @@ -439,8 +439,8 @@ Convars:RegisterCommand("changeteam", function(_, userid, team)
end
end, nil, 0)

-- killit <uid>
Convars:RegisterCommand("killit", function(_, userid)
-- slay <uid>
Convars:RegisterCommand("slay", function(_, userid)
if Players[tonumber(userid)]["userid_pawn"]:IsAlive() == true then
if IsAdmin(Convars:GetCommandClient()) == true then
if Players[tonumber(userid)] ~= nil then
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,10 @@ For admin:
- **grav \<uid\> \<value\>** - set gravity to the player (any decimal positive number, for example 0.5 or 49.0)
- **fric \<uid\> \<value\>** - to set the grip on the surface of the player (any decimal positive number, for example 0.5 or 49.0)
- **disarm \<uid\> \<weapon_classname\>** - remove the player's weapon, for example, weapon_ak47. Delete all weapons - instead of <weapon_classname> write - @all
- **killit \<uid\>** - kill the player
- **slay \<uid\>** - kill the player
- **changeteam \<uid\> \<team\>** - change the player's team (team number or short name. For example ct or 3)
- **hudstatus \<uid\> \<status\>** - turn off or turn off the hood to the player (0 or 1)
- **slap \<uid\> \<hp\>** - slap player

For all:
- **login \<password\>** - getting administrator rights for a session
Expand Down

0 comments on commit 13bf16c

Please sign in to comment.