Guest User

Untitled

a guest
Aug 15th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.35 KB | None | 0 0
  1. public OnPlayerText(playerid, text[])
  2.     {
  3.     new array[][6]={"word1", "word2", "word3"};
  4.     game = SendClientMessage(playerid, COLOR_GREEN, array[random( sizeof(array) )]);
  5.     if(strcmp(array[random(sizeof(array) == game)], text, false) == 0)
  6.         {
  7.         SendClientMessage(playerid, COLOR_RED, "You won!");
  8.         return 1;
  9.         }
  10.     return 1;
  11.     }
Add Comment
Please, Sign In to add comment