LucasRed

"brb" system

Mar 23rd, 2016
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.55 KB | None | 0 0
  1. local txt = split( text, " " );
  2. if ( text.slice( 0, 1 ) != " " && txt[0].tolower() == "brb" )
  3. {
  4.     if ( status[ player.ID ].Reason != null ) EMsg( "Voce ja esta no modo brb.", player );
  5.     else
  6.     {
  7.     local reason = GetTok( text, " ", 2, NumTok( text, " " ) );
  8.     if ( reason == null ) reason = "None"; // pode usar "if ( !reason )" também
  9.     ClientToAll( "maroon", "** " + player.Name + " will be right back! Reason: " + reason );
  10.     pIRC_Message( "13**4 " + player.Name + " 13will be right back! Reason:5 " + reason );
  11.     status[ player.ID ].Reason = reason;
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment