Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public FastChat(client)
- {
- new Bool:found = false;
- new ent = GetClientAimTarget(client, true);
- decl String:name[256];
- if (ent >= 0 && IsClientConnected(ent) && IsPlayerAlive(ent))
- {
- found = true;
- GetClientName(ent, name, 256);
- }
- new Handle:menuhandle = CreateMenu(FastChat_CallBack);
- SetMenuTitle(menuhandle, "빠른 채팅키");
- AddMenuItem(menuhandle, "네", "네");
- AddMenuItem(menuhandle, "아니요", "아니요");
- AddMenuItem(menuhandle, "도와줘요!", "도와줘요!");
- decl String:Formatting[5][256];
- if (found)
- {
- Format(Formatting[0], 256, "저는 %s님과 함께 있습니다.", name);
- Format(Formatting[1], 256, "저는 %s님을 봤습니다.", name);
- Format(Formatting[2], 256, "%s님이 수상해 보입니다.", name);
- Format(Formatting[3], 256, "%s님이 트레이터 입니다!", name);
- Format(Formatting[4], 256, "%s님은 이노센트입니다.", name);
- }
- else
- {
- Format(Formatting[0], 256, "저는 어떤님과 함께 있습니다.");
- Format(Formatting[1], 256, "저는 어떤님을 봤습니다.");
- Format(Formatting[2], 256, "어떤님이 수상해 보입니다.");
- Format(Formatting[3], 256, "어떤님이 트레이터 입니다!");
- Format(Formatting[4], 256, "어떤님은 이노센트입니다.");
- }
- for (new i; i < 5; i++)
- {
- AddMenuItem(menuhandle, Formatting[i], Formatting[i]);
- }
- AddMenuItem(menuhandle, "다들 살아있나요?", "다들 살아있나요?");
- SetMenuPagination(menuhandle, MENU_NO_PAGINATION);
- SetMenuExitButton(menuhandle, true);
- DisplayMenu(menuhandle, client, 1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement