Advertisement
no1star

Untitled

Mar 25th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. local version = 1.0 // the version
  2. hook.Add( "PlayerSay", "notificationinfo hook", function( ply, text, team )
  3. print("The Hook Works")
  4. if ( string.sub( text, 1, 18 ) == "!notificationinfo" ) then // if the string entered is equal to !notificationinfo and then nothing afterwards
  5.     ply:ChatPrint("Version -" .. tostring(version) .. "\nCredits: Made by CanadianGabe (Gabe), guided by good old friend Oliver.") // prints a message
  6.     return false
  7. end
  8. end )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement