Advertisement
Verzingz

GLua First

Mar 11th, 2017
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.27 KB | None | 0 0
  1. if (SERVER) then
  2.  
  3. end
  4.  
  5. if (CLIENT) then
  6.     local ply = LocalPlayer()
  7.     local function alive()
  8.         if ply:Alive() == true then
  9.             print ( "Player is alive!" )
  10.         elseif ply:Alive() == false then
  11.             print ( "Player is dead!" )
  12.         end
  13.     end
  14.     concommand.Add( "alive", alive )
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement