From 675a4327c1653512655963288e9a0c9acb40bf77 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Sun, 22 May 2016 15:33:18 -0400 Subject: Since the new item system, drinking water no longer works the way it used to --- gamemode/init.lua | 6 ------ 1 file changed, 6 deletions(-) (limited to 'gamemode/init.lua') 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 ) -- cgit v1.2.3-70-g09d2