Advertisement
JademusSreg

Text Tag Test

Apr 13th, 2012
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.72 KB | None | 0 0
  1. int TextTagTest;
  2. bool TTTest_Action (bool testConds, bool runActions)
  3. {
  4.     playergroup g = PlayerGroupActive();
  5.     int player;
  6.     int i;
  7.     for (i = PlayerGroupCount(g); i>0; i-=1)
  8.     {
  9.         player = PlayerGroupPlayer(g,i);
  10.         TextTagShow(TextTagTest,PlayerGroupSingle(player),true);
  11.         if (TextTagVisible(TextTagTest,player))
  12.         {
  13.             UIDisplayMessage(g,c_messageAreaDirective,PlayerName(player)+StringToText(" CAN SEE THE TEXT TAG"));
  14.         }
  15.         Wait(2,c_timeGame);
  16.     }
  17.     return true;
  18. }
  19.  
  20. void TTTest_Init ()
  21. {
  22.     TextTagTest = TextTagCreate(StringToText("TEXT TAG"),24,Point(20,20),15,true,true,null);
  23.     TriggerExecute(TriggerCreate("TTTest_Action"),false,false);
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement