Advertisement
iAmGhost

Untitled

Aug 21st, 2012
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. public FastChat(client)
  2. {
  3. new Bool:found = false;
  4. new ent = GetClientAimTarget(client, true);
  5.  
  6. decl String:name[256];
  7.  
  8. if (ent >= 0 && IsClientConnected(ent) && IsPlayerAlive(ent))
  9. {
  10. found = true;
  11. GetClientName(ent, name, 256);
  12. }
  13.  
  14. new Handle:menuhandle = CreateMenu(FastChat_CallBack);
  15.  
  16. SetMenuTitle(menuhandle, "빠른 채팅키");
  17. AddMenuItem(menuhandle, "네", "네");
  18. AddMenuItem(menuhandle, "아니요", "아니요");
  19. AddMenuItem(menuhandle, "도와줘요!", "도와줘요!");
  20.  
  21. decl String:Formatting[5][256];
  22.  
  23. if (found)
  24. {
  25. Format(Formatting[0], 256, "저는 %s님과 함께 있습니다.", name);
  26. Format(Formatting[1], 256, "저는 %s님을 봤습니다.", name);
  27. Format(Formatting[2], 256, "%s님이 수상해 보입니다.", name);
  28. Format(Formatting[3], 256, "%s님이 트레이터 입니다!", name);
  29. Format(Formatting[4], 256, "%s님은 이노센트입니다.", name);
  30. }
  31. else
  32. {
  33. Format(Formatting[0], 256, "저는 어떤님과 함께 있습니다.");
  34. Format(Formatting[1], 256, "저는 어떤님을 봤습니다.");
  35. Format(Formatting[2], 256, "어떤님이 수상해 보입니다.");
  36. Format(Formatting[3], 256, "어떤님이 트레이터 입니다!");
  37. Format(Formatting[4], 256, "어떤님은 이노센트입니다.");
  38. }
  39.  
  40. for (new i; i < 5; i++)
  41. {
  42. AddMenuItem(menuhandle, Formatting[i], Formatting[i]);
  43. }
  44.  
  45. AddMenuItem(menuhandle, "다들 살아있나요?", "다들 살아있나요?");
  46. SetMenuPagination(menuhandle, MENU_NO_PAGINATION);
  47. SetMenuExitButton(menuhandle, true);
  48.  
  49. DisplayMenu(menuhandle, client, 1);
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement