Advertisement
Guest User

Massonita

a guest
Apr 28th, 2015
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1. CMD:s(playerid, params[]) // Кричать
  2. {
  3. notlog
  4. new str[128];
  5. if(sscanf(params, "s[20]", params[0])) return SCM(playerid, GREY, "Синтаксис: /s [ Текст ]");
  6. if(PlayerInfo[playerid][pLevel] < 2) return SCM(playerid, GREY, "Голос не окреп, кричать нельзя.");
  7. format(str, sizeof(str), "%s[%d] крикнул: %s", Name[playerid],playerid, params[0]);
  8. ProxDetector(50.0, playerid, str,0xE6E6E6E6,0xC8C8C8C8,0xAAAAAAAA,0x8C8C8C8C,0x6E6E6E6E);
  9. if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) ApplyAnimation(playerid, "ON_LOOKERS", "shout_01",1000.0,0,0,0,0,0,1);
  10. return 1;
  11. }
  12. CMD:try(playerid, params[]) // попытаться что-то сделать.
  13. {
  14. notlog
  15. new string[128];
  16. new rand = random(4);
  17. if(sscanf(params, "s[20]", params[0])) return SCM(playerid, GREY, "Синтаксис: /try [ текст ]");
  18. if(rand < 2)
  19. {
  20. format(string, sizeof(string), "%s попытался %s | {9af524}Удачно", Name[playerid], params[0]);
  21. ProxDetector(20.0, playerid, string,0xDD90FFFF, 0xDD90FFFF, 0xDD90FFFF, 0xDD90FFFF, 0xDD90FFFF);
  22. }
  23. else
  24. {
  25. format(string, sizeof(string), "%s попытался %s | {FF0000}Не удачно", Name[playerid], params[0]);
  26. ProxDetector(20.0, playerid, string,0xDD90FFFF, 0xDD90FFFF, 0xDD90FFFF, 0xDD90FFFF, 0xDD90FFFF);
  27. }
  28. return 1;
  29. }
  30. CMD:me(playerid, params[]) // дейсвтие
  31. {
  32. notlog
  33. new str[128];
  34. if(sscanf(params, "s[20]", params[0])) return SCM(playerid, GREY, "Синтаксис: /me [ действие ]");
  35. format(str, sizeof(str), "%s %s", Name[playerid], params[0]);
  36. ProxDetector(20.0, playerid, str,0xDD90FFFF, 0xDD90FFFF, 0xDD90FFFF, 0xDD90FFFF, 0xDD90FFFF);
  37. return 1;
  38. }
  39. CMD:do(playerid, params[]) // действие от 3 лица
  40. {
  41. notlog
  42. new str[128];
  43. if(sscanf(params, "s[20]", params[0])) return SCM(playerid, GREY, "Синтаксис: /do [ действие ]");
  44. format(str, sizeof(str), "%s ( %s )", params[0], Name[playerid]);
  45. ProxDetector(20.0, playerid, str,0xDD90FFFF, 0xDD90FFFF, 0xDD90FFFF, 0xDD90FFFF, 0xDD90FFFF);
  46. return 1;
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement