- Регистрация
- 13 Мар 2022
- Сообщения
- 865
- Автор темы
- #1
C++:
CMD:me(playerid, params[]) {
if(sscanf(params, "s[118]", params[0]))
return SCM(playerid, COLOR_GREY, !"Используйте /me [текст]");
new string[144];
format(string, sizeof(string), "%s %s", PlayerInfo[playerid][pName], params[0]);
ProxDetector(20.0, playerid, string, 0xDE92FFFF, 0xDE92FFFF, 0xDE92FFFF, 0xDE92FFFF, 0xDE92FFFF);
return SetPlayerChatBubble(playerid, params[0], 0xDE92FFFF, 20, 7500);
}
CMD:do(playerid, params[]) {
if(sscanf(params, "s[116]", params[0]))
return SCM(playerid, COLOR_GREY, !"Используйте /do [текст]");
new string[144];
format(string, sizeof(string), "%s (%s)", params[0], PlayerInfo[playerid][pName]);
ProxDetector(20.0, playerid, string, 0xDE92FFFF, 0xDE92FFFF, 0xDE92FFFF, 0xDE92FFFF, 0xDE92FFFF);
return SetPlayerChatBubble(playerid, params[0], 0xDE92FFFF, 20, 7500);
}
CMD:ame(playerid, params[]) {
if(sscanf(params, "s[144]", params[0]))
return SCM(playerid, COLOR_GREY, !"Используйте /ame [текст]");
return SetPlayerChatBubble(playerid, params[0], 0xDE92FFFF, 20, 7500);
}
CMD:try(playerid, params[]) {
if(sscanf(params, "s[99]", params[0]))
return SCM(playerid, COLOR_GREY, !"Используйте /try [текст]");
new string[144];
format(string, sizeof(string), "%s %s | %s", PlayerInfo[playerid][pName], params[0], (!random(2)) ? ("{FF0000}Неудачно") : ("{32CD32}Удачно"));
ProxDetector(20.0, playerid, string, 0xDE92FFFF, 0xDE92FFFF, 0xDE92FFFF, 0xDE92FFFF, 0xDE92FFFF);
return 1;
}
CMD:todo(playerid, params[]) {
if(strlen(params) > 95)
return SCM(playerid, COLOR_GREY, !"Слишком длинный текст и действие");
new message[48], action[49];
if(sscanf(params, "p<*>s[47]s[48]", message, action))
return SCM(playerid, COLOR_GREY, !"Используйте /todo [текст*действие]");
if(strlen(message) < 2 || strlen(action) < 2)
return SCM(playerid, COLOR_GREY, !"Используйте /todo [текст*действие]");
new string[144];
format(string, sizeof(string), "- '%s' - {DE92FF}сказал%s %s, %s", message, (player_info[playerid][SEX] == 1) ? ("") : ("а"), PlayerInfo[playerid][pName], action);
ProxDetector(20.0, playerid, string, COLOR_WHITE, COLOR_WHITE, COLOR_WHITE, COLOR_WHITE, COLOR_WHITE);
return 1;
}
CMD:n(playerid, params[]) {
if(sscanf(params, "s[107]", params[0]))
return SCM(playerid, COLOR_GREY, !"Используйте /n [сообщение]");
new string[144];
format(string, sizeof(string), "(( %s[%d]: %s ))", PlayerInfo[playerid][pName], playerid, params[0]);
ProxDetector(20.0, playerid, string, 0xCCCC99FF, 0xCCCC99FF, 0xCCCC99FF, 0xCCCC99FF, 0xCCCC99FF);
return 1;
}
CMD:s(playerid, params[]) {
if(sscanf(params, "s[105]", params[0]))
return SCM(playerid, COLOR_GREY, !"Используйте /s [текст]");
new string[144];
format(string, sizeof(string), "%s[%d] крикнул: %s", PlayerInfo[playerid][pName], playerid, params[0]);
ProxDetector(30.0, playerid, string, COLOR_WHITE, COLOR_WHITE, COLOR_WHITE, COLOR_WHITE, COLOR_WHITE);
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
ApplyAnimation(playerid, "ON_LOOKERS", "shout_01", 4.1,0,0,0,0,0);
return SetPlayerChatBubble(playerid, params[0], COLOR_WHITE, 25, 7500);
}