Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1.     if string.match(ent, "cw_flash_grenade") or string.match(ent, "cw_frag_grenade") or string.match(ent, "cw_smoke_grenade") then
  2.             if CurTime() < grenTimeNew then
  3.                 ply:Notify("You may purchase a grenade in " .. math.Round(grenTimeNew - CurTime()) .. " seconds.", BASEWARS_NOTIFICATION_ERROR)
  4.                 return false
  5.             else
  6.                 grenTimeNew = CurTime() + 30
  7.                 return true
  8.             end
  9.         end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement