Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // СПЕШИАЛ ДЛЯ КОРЖИК-ЖОРЖИК, ВИТХ ЛОВЕ(СЕРДЕЧКО)
- // БИДЛА КОДЖ, В СУТДИИ
- #include <a_samp>
- #define DIALOG_CHATSTYLE_CHOOSE 1
- new StopTalkVar[MAX_PLAYERS];
- public OnPlayerDisconnect(playerid, reason)
- {
- DeletePVar(playerid, "ChatStyle");
- return true;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/chatstyle", cmdtext, true, 10) == 0)
- {
- ShowPlayerDialog(playerid, DIALOG_CHATSTYLE_CHOOSE, DIALOG_STYLE_LIST, "{FF9900}Стиль общения", "Стандартный\nСтиль общения №1\nСтиль общения №2\nСтиль общения №3\nСтиль общения №4\nСтиль общения №5\nСтиль общения №6\nСтиль общения №7\nСтиль общения №8", "Choose", "Cancel");
- return true;
- }
- return false;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == DIALOG_CHATSTYLE_CHOOSE)
- {
- if !response *then return true;
- SetPVarInt(playerid, "ChatStyle", listitem);
- switch(listitem)
- {
- case 0..8: SendClientMessage(playerid, -1, "Вы изменили свой стиль общения.");
- }
- }
- return true;
- }
- public OnPlayerText(playerid, text[])
- {
- switch(GetPVarInt(playerid, "ChatStyle"))
- {
- case 1: ApplyAnimation(playerid, "MISC", "Idle_Chat_02", 4.1, 0, 1, 1, 1, 1);
- case 2: ApplyAnimation(playerid, "GANGS", "prtial_gngtlkA", 4.1, 0, 1, 1, 1, 1);
- case 3: ApplyAnimation(playerid, "GANGS", "prtial_gngtlkCt", 4.1, 0, 1, 1, 1, 1);
- case 4: ApplyAnimation(playerid, "GANGS", "prtial_gngtlkD", 4.1, 0, 1, 1, 1, 1);
- case 5: ApplyAnimation(playerid, "GANGS", "prtial_gngtlkE", 4.1, 0, 1, 1, 1, 1);
- case 6: ApplyAnimation(playerid, "GANGS", "prtial_gngtlkF", 4.1, 0, 1, 1, 1, 1);
- case 7: ApplyAnimation(playerid, "GANGS", "prtial_gngtlkG", 4.1, 0, 1, 1, 1, 1);
- case 8: ApplyAnimation(playerid, "GANGS", "prtial_gngtlkH", 4.1, 0, 1, 1, 1, 1);
- default: ApplyAnimation(playerid, "PED", "IDLE_CHAT", 4.1, 0, 1, 1, 1, 1);
- }
- StopTalkVar[playerid] = SetTimerEx("StopTalk", strlen(text) * 100, false, "d", playerid);
- return true;
- }
- forward StopTalk(playerid);
- public StopTalk(playerid)
- {
- ApplyAnimation(playerid, "CARRY", "crry_prtial", 2.0, 0, 0, 0, 0, 0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement