Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerText(playerid, text[])
- {
- new array[][6]={"word1", "word2", "word3"};
- game = SendClientMessage(playerid, COLOR_GREEN, array[random( sizeof(array) )]);
- if(strcmp(array[random(sizeof(array) == game)], text, false) == 0)
- {
- SendClientMessage(playerid, COLOR_RED, "You won!");
- return 1;
- }
- return 1;
- }
Add Comment
Please, Sign In to add comment