Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. if(strcmp(cmd, "/blowing", true) == 0)
  2. {
  3. if(PlayerInfo[playerid][pMember] == 0 && PlayerInfo[playerid][pLeader] == 0)return SendClientMessage(playerid, COLOR_GREY, "Ты лошара.");
  4. if(JustReported[playerid] == 1)return SendClientMessage(playerid, COLOR_GREY, "Хрен знает что тут написано.");
  5. new Float:Pos[3],strings[255],stringblow[255],i;
  6. tmp = strtok(cmdtext, idx);
  7. if(!strlen(tmp))return SendClientMessage(playerid, COLOR_PURPLE, " Èñïîëüçóéòå: /blowing [playerid/PartOfName]");
  8. new playa = ReturnUser(tmp);
  9. if(!IsPlayerConnected(playa))return SendClientMessage(playerid, COLOR_GREY, "Вот же хуйня, этот мудак не в сети.");
  10. GetPlayerPos(playa,Pos[0],Pos[1],Pos[2]);
  11. if(!IsPlayerInRangeOfPoint(playerid,10,Pos[0],Pos[1],Pos[2]))return SendClientMessage(playerid, COLOR_PURPLE, "Этот распиздяй далековат.");
  12. SetPlayerHealth(playa,14);
  13. ApplyAnimation(playerid,"CRACK", "crckdeth2", 1.800001, 1, 0, 0, 1, 600);
  14. new Name[MAX_PLAYER_NAME],Name1[MAX_PLAYER_NAME];
  15. GetPlayerName(playerid,Name,sizeof(Name));
  16. GetPlayerName(playa,Name1,sizeof(Name1));
  17. format(stringblow,sizeof(stringblow),"%s что то сделал с %s",Name,Name1);
  18. SendClientMessage(i,COLOR_PURPLE,stringblow);
  19. ApplyAnimation(playerid,"GANGS","shake_carK",4.1,0,1,1,1,1);
  20. format(string, sizeof(string), "* %s Что то тут написано!", Name);
  21. for(new j=0;j<MAX_PLAYERS;j++)
  22. {
  23. if(IsPlayerInRangeOfPoint(j,20,Pos[0],Pos[1],Pos[2]))
  24. {
  25. SendClientMessage(playerid,COLOR_PURPLE,strings);
  26. JustReported[playerid] = 1;
  27. SetTimerEx("ReportReset", 120000, false, "i", playerid);// 2ìèí
  28.  
  29. }
  30. else
  31. {
  32. SendClientMessage(playerid, COLOR_GREY, " Âû íå ñîñòîèòå âî ôðàêöèè !");
  33. }
  34. }
  35. }
  36. return 1;
  37.  
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement