Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:s(playerid, params[]) // Кричать
- {
- notlog
- new str[128];
- if(sscanf(params, "s[20]", params[0])) return SCM(playerid, GREY, "Синтаксис: /s [ Текст ]");
- if(PlayerInfo[playerid][pLevel] < 2) return SCM(playerid, GREY, "Голос не окреп, кричать нельзя.");
- format(str, sizeof(str), "%s[%d] крикнул: %s", Name[playerid],playerid, params[0]);
- ProxDetector(50.0, playerid, str,0xE6E6E6E6,0xC8C8C8C8,0xAAAAAAAA,0x8C8C8C8C,0x6E6E6E6E);
- if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) ApplyAnimation(playerid, "ON_LOOKERS", "shout_01",1000.0,0,0,0,0,0,1);
- return 1;
- }
- CMD:try(playerid, params[]) // попытаться что-то сделать.
- {
- notlog
- new string[128];
- new rand = random(4);
- if(sscanf(params, "s[20]", params[0])) return SCM(playerid, GREY, "Синтаксис: /try [ текст ]");
- if(rand < 2)
- {
- format(string, sizeof(string), "%s попытался %s | {9af524}Удачно", Name[playerid], params[0]);
- ProxDetector(20.0, playerid, string,0xDD90FFFF, 0xDD90FFFF, 0xDD90FFFF, 0xDD90FFFF, 0xDD90FFFF);
- }
- else
- {
- format(string, sizeof(string), "%s попытался %s | {FF0000}Не удачно", Name[playerid], params[0]);
- ProxDetector(20.0, playerid, string,0xDD90FFFF, 0xDD90FFFF, 0xDD90FFFF, 0xDD90FFFF, 0xDD90FFFF);
- }
- return 1;
- }
- CMD:me(playerid, params[]) // дейсвтие
- {
- notlog
- new str[128];
- if(sscanf(params, "s[20]", params[0])) return SCM(playerid, GREY, "Синтаксис: /me [ действие ]");
- format(str, sizeof(str), "%s %s", Name[playerid], params[0]);
- ProxDetector(20.0, playerid, str,0xDD90FFFF, 0xDD90FFFF, 0xDD90FFFF, 0xDD90FFFF, 0xDD90FFFF);
- return 1;
- }
- CMD:do(playerid, params[]) // действие от 3 лица
- {
- notlog
- new str[128];
- if(sscanf(params, "s[20]", params[0])) return SCM(playerid, GREY, "Синтаксис: /do [ действие ]");
- format(str, sizeof(str), "%s ( %s )", params[0], Name[playerid]);
- ProxDetector(20.0, playerid, str,0xDD90FFFF, 0xDD90FFFF, 0xDD90FFFF, 0xDD90FFFF, 0xDD90FFFF);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement