diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2016-05-22 15:33:18 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2016-05-22 15:33:18 -0400 |
| commit | 675a4327c1653512655963288e9a0c9acb40bf77 (patch) | |
| tree | ac1260ef1e7d410e17f375c8333d3f11cd944040 /gamemode/init.lua | |
| parent | e84d85263c6ef55af98cb213c5462107a0170506 (diff) | |
| download | gmstranded-675a4327c1653512655963288e9a0c9acb40bf77.tar.gz gmstranded-675a4327c1653512655963288e9a0c9acb40bf77.tar.bz2 gmstranded-675a4327c1653512655963288e9a0c9acb40bf77.zip | |
Since the new item system, drinking water no longer works the way it used to
Diffstat (limited to 'gamemode/init.lua')
| -rw-r--r-- | gamemode/init.lua | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/gamemode/init.lua b/gamemode/init.lua index 48acecd..7ba8b25 100644 --- a/gamemode/init.lua +++ b/gamemode/init.lua @@ -418,12 +418,6 @@ for k,v in pairs(GM.Plantables) do end) end -function GM.DrinkFromBottle( ply, cmd, args ) - if ( ply:GetResource( "Water_Bottles" ) < 1 ) then ply:SendMessage( "You need a water bottle.", 3, Color( 200, 0, 0, 255 ) ) return end - ply:DoProcess( "DrinkBottle", 1.5 ) -end -concommand.Add( "gms_drinkbottle", GM.DrinkFromBottle ) - function GM.EatBerry( ply, cmd, args ) if ( ply:GetResource( "Berries" ) < 1 ) then ply:SendMessage( "You need some berries.", 3, Color( 200, 0, 0, 255 ) ) return end ply:DoProcess( "EatBerry", 1.5 ) |
