Advertisement
Guest User

Крик

a guest
Feb 6th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. CMD:shout(playerid, params[])
  2. {
  3. if(PlayerInfo[playerid][pLogin] == 0) return true;
  4. PlayerInfo[playerid][pMuted] > 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "У Вас бан чата");
  5. if(sscanf(params, "s[64]", params[0])) return SendClientMessage(playerid, COLOR_WHITE, " Введите: (/s)hout [текст]");
  6. format(YCMDstr, sizeof(YCMDstr), "%s кричит: %s!!",Name(playerid),params[0]);
  7. ProxDetector(60.0, playerid, YCMDstr,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_FADE1,COLOR_FADE2);
  8. Flood[playerid] = 2;
  9. if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) ApplyAnimation(playerid, "RIOT", "RIOT_shout", 2000.0, 0, 1, 1, 1, 1, 1), SetTimerEx("ClearAnim", 800, false, "d", playerid);
  10. SetPlayerChatBubble(playerid,params[0],COLOR_YELLOW,60.0,10000);
  11. SetPVarInt(playerid,"Flood",0);
  12. return true;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement