Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. function onPlayerCommand( player, cmd, text )
  2. {
  3.     if ( cmd == "checknick" )
  4.     {
  5.         local test = Test( player );
  6.         if ( test == true ) print( "You are Venkat!" );
  7.         else if ( test == false ) print( "You're not Venkat!" );
  8.     }
  9. }
  10.  
  11. function test( player )
  12. {
  13.     if ( player.Name == "Venkat" ) return true;
  14.     else return false;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement