Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 4.01 KB | None | 0 0
  1. stock Speech(playerid, text[])
  2. {
  3.     if(!PlayerInfo[playerid][pLogin]) return 1;
  4.     if(PlayerInfo[playerid][pMuteTime]) return SendClientMessage(playerid,CGRAY,"Ó Âàñ áàí ÷àòà");
  5.     if(Getstringa(text,"xD")) return MeAction(playerid,"ñìå¸òñÿ") & 0;
  6.     if((Getstringa(text,"çäðàâèÿ") || Getstringa(text,"q")) && (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pMember] == 27)) return MeAction(playerid,"îòäàë(-à) âîèíñêîå ïðèâåòñòâèå") & 0;
  7.     if(Getstringa(text,":D")) return MeAction(playerid,"õîõî÷åò âî âåñü ãîëîñ") & 0;
  8.     if(Getstringa(text,")")) return MeAction(playerid,"óëûáàåòñÿ") & 0;
  9.     if(Getstringa(text,"))")) return MeAction(playerid,"ñìå¸òñÿ") & 0;
  10.     if(Getstringa(text,"(")) return MeAction(playerid,"ðàññòðîèëñÿ(-àñü)") & 0;
  11.     if(Getstringa(text,"((")) return MeAction(playerid, "ñèëüíî ðàññòðîèëñÿ(-àñü)") & 0;
  12.     if((Getstringa(text,"qq") || Getstringa(text,"êó")) && PlayerInfo[playerid][pMember] == 12) return MeAction(playerid, "ïîêàçàë(à) ðàñïàëüöîâêó Ballas Gang") & 0;
  13.     if((Getstringa(text,"qq") || Getstringa(text,"êó")) && PlayerInfo[playerid][pMember] == 13) return MeAction(playerid, "ïîêàçàë(à) ðàñïàëüöîâêó Vagos Gang") & 0;
  14.     if((Getstringa(text,"qq") || Getstringa(text,"êó")) && PlayerInfo[playerid][pMember] == 15) return MeAction(playerid, "ïîêàçàë(à) ðàñïàëüöîâêó Grove Street Gang") & 0;
  15.     if((Getstringa(text,"qq") || Getstringa(text,"êó")) && PlayerInfo[playerid][pMember] == 17) return MeAction(playerid, "ïîêàçàë(à) ðàñïàëüöîâêó Aztec Gang") & 0;
  16.     if((Getstringa(text,"qq") || Getstringa(text,"êó")) && PlayerInfo[playerid][pMember] == 18) return MeAction(playerid, "ïîêàçàë(à) ðàñïàëüöîâêó The Rifa Gang") & 0;
  17.     if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT && PlayerTied{playerid} == false && !GetPVarInt(playerid, "PlayerCuffedTime"))
  18.     {
  19.         ApplyAnimation(playerid,"PED","IDLE_CHAT",4.1,0,1,1,1,1,1);
  20.         SetTimerEx("AnimClear", 3000, 0, "d", playerid);
  21.     }
  22.     if(GetPVarInt(playerid, "gag")) return SendClientMessage(playerid, COLOR_LIGHTRED, "Ó Âàñ êëÿï, âû íå ìîæåòå ãîâîðèòü!") & 0;
  23.  
  24.     new mes[128];
  25.     if(GetPVarInt(playerid, "MaskPlayer")) {
  26.         if(PlayerInfo[playerid][pSettings] & sPlayerIDChat) format(mes,sizeof(mes),"- {7a7667}%s"WHITE": %s",PlayerInfo[playerid][pNames],text);
  27.         else format(mes,sizeof(mes),"- {7a7667}%s"WHITE"[%d]: %s",PlayerInfo[playerid][pNames],playerid,text);
  28.     }
  29.     else {
  30.         if(PlayerInfo[playerid][pSettings] & sPlayerIDChat) format(mes,sizeof(mes),"- {%s}%s"WHITE": %s",GetFractionColor[PlayerInfo[playerid][pMember]],PlayerInfo[playerid][pNames],text);
  31.         else format(mes,sizeof(mes),"- {%s}%s"WHITE"[%d]: %s",GetFractionColor[PlayerInfo[playerid][pMember]],PlayerInfo[playerid][pNames],playerid,text);
  32.     }
  33.  
  34.     GetPlayerPos(playerid,PlayerPos[playerid][0],PlayerPos[playerid][1],PlayerPos[playerid][2]);
  35.     if(PlayerPos[playerid][0] == 0.0 || PlayerPos[playerid][1] == 0.0 || PlayerPos[playerid][2] == 0.0) return 0;
  36.     tforeach(i)
  37.     {
  38.         if (GetPlayerVirtualWorld(playerid) != GetPlayerVirtualWorld(i) || GetPlayerInterior(playerid) != GetPlayerInterior(i)) continue;
  39.         if(!PlayerToPoint(14.0,i,PlayerPos[playerid][0],PlayerPos[playerid][1],PlayerPos[playerid][2])) continue;
  40.         new color = PlayerToPoint(4.0,i,PlayerPos[playerid][0],PlayerPos[playerid][1],PlayerPos[playerid][2]) ? (0xFFFFFFFF) : PlayerToPoint(8.0,i,PlayerPos[playerid][0],PlayerPos[playerid][1],PlayerPos[playerid][2]) ? (0xCCCCCCFF) : (0xAAAAAAFF);
  41.         if(IsPlayerInAnyVehicle(playerid) && (GetPVarInt(playerid, "VehicleEnters") == GetPVarInt(i, "tipster_vehicle") - 1) && GetPVarInt(i,"tipster_type") == 2)
  42.         {
  43.             new str[128];
  44.             format(str,128,"[TIPSTER] %s", mes);
  45.             SendClientMessage(i,color,str);
  46.         }
  47.         else SendClientMessage(i,color,mes);
  48.     }
  49.  
  50.     SetPlayerChatBubble(playerid, text, COLOR_WHITE, 20.0, 10000);
  51.     return 1;
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement