SHOW:
|
|
- or go back to the newest paste.
1 | function GlaiveSignUp ( ply, text ) | |
2 | - | if string.lower(text) == "!glaive" then |
2 | + | |
3 | - | ply:ChatPrint("Are you sure you want to sign up? This will strip all your weapons! Type !glaive again to confirm") |
3 | + | |
4 | ||
5 | ply:ChatPrint ("You are now signed up for the 1 vs. 1 glaive match! Type !leave to leave.") | |
6 | ply:StripWeapons() | |
7 | Player:Give(glv_glaive) | |
8 | ply:SetPos(1944.946777, -2931.876953, 765.031250) | |
9 | - | if string.lower(text) == "!leave" then |
9 | + | |
10 | - | ply:Kill() |
10 | + | elseif string.lower(text) == "!leave" then |
11 | - | end |
11 | + | |
12 | ply:Kill() | |
13 | ||
14 | - | end |
14 | + | |
15 | end | |
16 | end | |
17 | hook.Add("PlayerSay", "MuhCustomChathook", GlaiveSignUp ) |