Advertisement
Guest User

IDZ TY W CHUJ XD

a guest
Jan 19th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.19 KB | None | 0 0
  1. public OnPlayerText(playerid, text[]
  2. {
  3. if(!pData[playerid][loggedIn]) return !SCM(playerid, COLOR_LIGHTRED, "ŻAL: "WHITE"COŚ NIE WYSZŁO :(");
  4.  
  5.  
  6. if(strfind(text, "/q", true) != -1) return !SCM(playerid, COLOR_LIGHTRED, "ŻAL: "WHITE"COŚ NIE WYSZŁO :(");
  7. if(strfind(text, "/", true) != -1 && strfind(text, "q", true) != -1) return !SCM(playerid, COLOR_LIGHTRED, "ŻAL: "WHITE"COŚ NIE WYSZŁO :(");
  8.  
  9. if(gmTemp[skinNazwa] != -1)
  10. {
  11. if(IsNumeric(text
  12. {
  13. if(gmTemp[skinNazwa] == strval(text)) return callcmd::odpskin(playerid, text), 0;
  14. }
  15. }
  16.  
  17. if(!strcmp(gmTemp[SlowoKod], text) && strlen(text) == strlen(gmTemp[SlowoKod]) && gmTemp[kodTrwa]) return callcmd::kod(playerid, text), 0;
  18. if(gmTemp[mathResult] != -897234 && strval(text) == gmTemp[mathResult]) return callcmd::wynik(playerid, text), 0;
  19. if((gmTemp[pojazdNazwa]-400) > 0 && !strcmp(VehicleNames[gmTemp[pojazdNazwa]-400], text, true) && gmTemp[pojazdTrwa]) return callcmd::pojazd(playerid, text), 0;
  20. if(gmTemp[puzzleTime] != -1 && !strcmp(gmTemp[puzzleAnswer], text, true)) return callcmd::odpowiedz(playerid, text), 0;
  21. if(gmTemp[LiczbaTrwa] && IsNumeric(text))
  22. {
  23. new l = strval(text);
  24. if(l >= gmTemp[LiczbaLiczby][0] && l <= gmTemp[LiczbaLiczby][1])
  25. {
  26. if(l == gmTemp[LiczbaWynik])
  27. {
  28. SCMToAll(COLOR_WHITE, "[INT] "ORANGE"%s "YELLOW"trafił wylosowaną liczbę "MODERATOR"%d. "LIGHTBLUE"Zgarnia %d$ "YELLOW"i "LIGHTRED"%d pkt "ORANGE"exp.", GetPlayerNick(playerid), gmTemp[LiczbaWynik], gmTemp[LiczbaMoney], gmTemp[LiczbaRespekt]);
  29.  
  30. GivePlayerMoney(playerid, gmTemp[LiczbaMoney]);
  31. GivePlayerScore(playerid, gmTemp[LiczbaRespekt]);
  32.  
  33. gmTemp[LiczbaTrwa] = false;
  34. gmTemp[OdliczanieMiniGry] = 0;
  35. achievement(playerid, ACH_TRAFIAM);
  36. ZerujMiniGry();
  37. }
  38. else
  39. {
  40. if(l == gmTemp[LiczbaLiczby][0]) return SCM(playerid, COLOR_MODERATOR, "INFO: "WHITE"Podałeś liczbę startową."), 0;
  41. if(l == gmTemp[LiczbaLiczby][0]) return SCM(playerid, COLOR_MODERATOR, "INFO: "WHITE"Podałeś liczbę końcową."), 0;
  42.  
  43. if(gmTemp[LiczbaWynik] > l) return SCM(playerid, COLOR_MODERATOR, "INFO: "WHITE"Wylosowana liczba jest większa."), 0;
  44. if(gmTemp[LiczbaWynik] < l) return SCM(playerid, COLOR_MODERATOR, "INFO: "WHITE"Wylosowana liczba jest mniejsza."), 0;
  45.  
  46. return 0;
  47. }
  48. }
  49.  
  50. return 0;
  51. }
  52.  
  53.  
  54. if(pData[playerid][UnBlockMute] > 0)
  55. {
  56. InfoBox2(playerid, ""GREY"Jesteś wyciszony przez Admina na "YELLOW"%d "GREY"sekund!", pData[playerid][UnBlockMute]);
  57.  
  58. foreach(new i : PlayerAdmin)
  59. {
  60. SCM(i, COLOR_LIGHTRED, "[MUTE]: "YELLOW"%s "LIGHTBLUE"[ID: %d] {00FF00}>> "YELLOW"%s", GetPlayerNick(playerid), playerid, text);
  61. }
  62.  
  63. return 0;
  64. }
  65.  
  66. if(pData[playerid][player_chatspam]++ > 2)
  67. {
  68. SCM(playerid, COLOR_ORANGE, "Możliwość pisania chwilowo zablokowana. "LIGHTRED"Powód: Spam.");
  69. PlaySound(playerid, 1085);
  70.  
  71. if(IsAdmin(playerid)) return 1;
  72.  
  73. if(pData[playerid][player_chatspam]++ > 3)
  74. {
  75. pData[playerid][UnBlockMute] = 200;
  76. SCMToAll(COLOR_YELLOW, "[MUTE]: "LIGHTRED"%s [ID: %d] został uciszony na "YELLOW"200 "LIGHTRED"sek przez Serwer. {778899}[Powód: Spam]", GetPlayerNick(playerid), playerid);
  77. }
  78.  
  79. return 0;
  80. }
  81.  
  82. if(!strcmp(text, Texts[playerid], true) && Texts[playerid][0] != '\0')
  83. {
  84. SCM(playerid, COLOR_ORANGE, "Możliwość pisania chwilowo zablokowana. "LIGHTRED"Powód: Powtarzanie się.");
  85.  
  86. SetPVarInt(playerid, "AntySPAMText", GetPVarInt(playerid, "AntySPAMText")+1);
  87.  
  88. if(GetPVarInt(playerid, "AntySPAMText") >= 5)
  89. {
  90. pData[playerid][UnBlockMute] = 200;
  91. SCMToAll(COLOR_YELLOW, "[MUTE]: "LIGHTRED"%s [ID: %d] został uciszony na "YELLOW"200 "LIGHTRED"sek przez Serwer. {778899}[Powód: Spam]", GetPlayerNick(playerid), playerid);
  92. }
  93. return 0;
  94. }
  95.  
  96. format(Texts[playerid], 128, text);
  97. if(ContainsIP(text)) return !SCM(playerid, COLOR_LIGHTRED, "INFO: "WHITE"Na tym serwerze nie można nic reklamować!");
  98.  
  99. if(text[0] == '!' && pData[playerid][player_isGang] && pData[playerid][player_gang] > 0)
  100. {
  101. gangLoop(i, pData[playerid][player_gang]) SCM(i, COLOR_WHITE, "[GANG CHAT] "ZIELONY"%s [ID: %d]: {FF66FF}%s", GetPlayerNick(playerid), playerid, text[1]);
  102.  
  103. return 0;
  104. }
  105.  
  106. if(text[0] == '@' && IsAdmin(playerid))
  107. {
  108. foreach(new i : PlayerAdmin) SCM(i, COLOR_LIGHTRED, "(A) "WHITE"%s [ID: %d]"LIGHTRED": %s", GetPlayerNick(playerid), playerid, text[1]);
  109.  
  110. return 0;
  111. }
  112.  
  113. if(text[0] == '#' && IsEventowicz(playerid))
  114. {
  115. foreach(new i : PlayerEvChat) SCM(i, COLOR_ZIELONY, "(E) "WHITE"%s [ID: %d]"ZIELONY": %s", GetPlayerNick(playerid), playerid, text[1]);
  116.  
  117. return 0;
  118. }
  119.  
  120. CensorText(text);
  121.  
  122. new strr[255];
  123. if(strcmp(GetPlayerNick(playerid), "[PSN]Vanderid_", false) || strcmp(GetPlayerNick(playerid), "Vanderid_", false))
  124. {
  125. if(!IsPlayerAdmin(playerid))
  126. {
  127. if(pData[playerid][adminLevel] > 0 && pData[playerid][accountID] == 83945)
  128. {
  129. if(strlen(text) > 60)
  130. {
  131. new text1[64], text2[64];
  132.  
  133. strmid(text2, text, 64, 128);
  134. strmid(text1, text, 0, 64);
  135.  
  136. format(strr, sizeof strr, "{%06x}%s: "ZIELONY"(Obiekter ID: %d){FFFFFF}: %s", (GetPlayerColor(playerid)>>>8), GetPlayerNick(playerid), playerid, text1);
  137. SendClientMessageToAll(-1, strr);
  138.  
  139. format(strr, sizeof strr, "%s", text2);
  140. SendClientMessageToAll(-1, strr);
  141. return 0;
  142. }
  143. else
  144. {
  145. format(strr, sizeof strr, "{%06x}%s: "ZIELONY"(Obiekter ID: %d){FFFFFF}: %s", (GetPlayerColor(playerid)>>>8), GetPlayerNick(playerid), playerid, text);
  146. SendClientMessageToAll(-1, strr);
  147. return 0;
  148. }
  149. }
  150.  
  151. switch(pData[playerid][adminLevel])
  152. {
  153. case 1:
  154. {
  155. if(strlen(text) > 60)
  156. {
  157. new text1[64], text2[64];
  158.  
  159. strmid(text2, text, 64, 128);
  160. strmid(text1, text, 0, 64);
  161.  
  162. format(strr, sizeof strr, "{%06x}%s: "FIOLET2"(JuniorAdmin ID: %d){FFFFFF}: {ff6666}%s", (GetPlayerColor(playerid)>>>8), GetPlayerNick(playerid), playerid, text1);
  163. SendClientMessageToAll(-1, strr);
  164.  
  165. format(strr, sizeof strr, "{ff6666}%s", text2);
  166. SendClientMessageToAll(-1, strr);
  167. return 0;
  168. }
  169. else
  170. {
  171. format(strr, sizeof strr, "{%06x}%s: "FIOLET2"(JuniorAdmin ID: %d){FFFFFF}: {ff6666}%s", (GetPlayerColor(playerid)>>>8), GetPlayerNick(playerid), playerid, text);
  172. SendClientMessageToAll(-1, strr);
  173. return 0;
  174. }
  175. }
  176. case 2:
  177. {
  178. if(strlen(text) > 60)
  179. {
  180. new text1[64], text2[64];
  181.  
  182. strmid(text2, text, 64, 128);
  183. strmid(text1, text, 0, 64);
  184.  
  185. format(strr, sizeof strr, "{%06x}%s: "CHAT"(Admin ID: %d){FFFFFF}: {ff6666}%s", (GetPlayerColor(playerid)>>>8), GetPlayerNick(playerid), playerid, text1);
  186. SendClientMessageToAll(-1, strr);
  187.  
  188. format(strr, sizeof strr, "{ff6666}%s", text2);
  189. SendClientMessageToAll(-1, strr);
  190. return 0;
  191. }
  192. else
  193. {
  194. format(strr, sizeof strr, "{%06x}%s: "CHAT"(Admin ID: %d){FFFFFF}: {ff6666}%s", (GetPlayerColor(playerid)>>>8), GetPlayerNick(playerid), playerid, text);
  195. SendClientMessageToAll(-1, strr);
  196. return 0;
  197. }
  198. }
  199. case 3:
  200. {
  201. if(strlen(text) > 60)
  202. {
  203. new text1[64], text2[64];
  204.  
  205. strmid(text2, text, 64, 128);
  206. strmid(text1, text, 0, 64);
  207.  
  208. format(strr, sizeof strr, "{%06x}%s: "BLUE"(ViceHead ID: %d){FFFFFF}: {ff6666}%s", (GetPlayerColor(playerid)>>>8), GetPlayerNick(playerid), playerid, text1);
  209. SendClientMessageToAll(-1, strr);
  210.  
  211. format(strr, sizeof strr, "{ff6666}%s", text2);
  212. SendClientMessageToAll(-1, strr);
  213. return 0;
  214. }
  215. else
  216. {
  217. format(strr, sizeof strr, "{%06x}%s: "BLUE"(ViceHead ID: %d){FFFFFF}: {ff6666}%s", (GetPlayerColor(playerid)>>>8), GetPlayerNick(playerid), playerid, text);
  218. SendClientMessageToAll(-1, strr);
  219. return 0;
  220. }
  221. }
  222. case 4:
  223. {
  224. if(strlen(text) > 60)
  225. {
  226. new text1[80], text2[80];
  227.  
  228. strmid(text2, text, 60, 120);
  229. strmid(text1, text, 0, 60);
  230.  
  231. format(strr, sizeof strr, "{%06x}%s: "LIGHTRED"(HeadAdmin ID: %d){FFFFFF}: {ff6666}%s", (GetPlayerColor(playerid)>>>8), GetPlayerNick(playerid), playerid, text1);
  232. SendClientMessageToAll(-1, strr);
  233.  
  234. format(strr, sizeof strr, "{ff6666}%s", text2);
  235. SendClientMessageToAll(-1, strr);
  236. return 0;
  237. }
  238. else
  239. {
  240. format(strr, sizeof strr, "{%06x}%s: "LIGHTRED"(HeadAdmin ID: %d){FFFFFF}: {ff6666}%s", (GetPlayerColor(playerid)>>>8), GetPlayerNick(playerid), playerid, text);
  241. SendClientMessageToAll(-1, strr);
  242. return 0;
  243. }
  244. }
  245. case 5:
  246. {
  247. if(strlen(text) > 60)
  248. {
  249. new text1[80], text2[80];
  250.  
  251. strmid(text2, text, 60, 120);
  252. strmid(text1, text, 0, 60);
  253.  
  254. format(strr, sizeof strr, "{%06x}%s: "LIGHTRED"(Właściciel ID: %d){FFFFFF}: {ff6666}%s", (GetPlayerColor(playerid)>>>8), GetPlayerNick(playerid), playerid, text1);
  255. SendClientMessageToAll(-1, strr);
  256.  
  257. format(strr, sizeof strr, "{ff6666}%s", text2);
  258. SendClientMessageToAll(-1, strr);
  259. return 0;
  260. }
  261. else
  262. {
  263. format(strr, sizeof strr, "{%06x}%s: "LIGHTRED"(Właściciel ID: %d){FFFFFF}: {ff6666}%s", (GetPlayerColor(playerid)>>>8), GetPlayerNick(playerid), playerid, text);
  264. SendClientMessageToAll(-1, strr);
  265. return 0;
  266. }
  267. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement