DexyHendrix

Untitled

Nov 30th, 2016
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.17 KB | None | 0 0
  1. CMD:m(playerid, params[])
  2. {
  3. if(!isPlayerLogged[playerid]) return GRESKA(playerid, "Morate biti ulogovani da bi koristili komande!");
  4. if(IsPlayerConnected(playerid))
  5. {
  6. if(PlayerInfo[playerid][pMute] > 0)
  7. {
  8. SCMF(playerid, WHITE, "{FF0000}OE-AC: {FFFFFF}Ne mozete pricati jos %d minuta, oduzeto vam je pravo govora!",PlayerInfo[playerid][pMute]);
  9. return 1;
  10. }
  11. new tmpcar = GetPlayerVehicleID(playerid);
  12. new string[256];
  13. new result[126];
  14. if(sscanf(params, "s[126]", result)) return SCM(playerid, COLOR_GRAD2, "Koristi: /m [tekst]");
  15. if(IsACop(playerid))
  16. {
  17. if(!IsACopCar(tmpcar) || !IsAnSAJCar(tmpcar) || !IsASAPDCar(tmpcar)|| !IsNgCar(tmpcar))
  18. {
  19. new currank[64];
  20. if(PlayerInfo[playerid][pMember] == 1) { currank = "Policija"; }
  21. else if(PlayerInfo[playerid][pLeadernovi] == 1) { currank = "Policija"; }
  22. else if(PlayerInfo[playerid][pMember] == 2) { currank = "SAJ"; }
  23. else if(PlayerInfo[playerid][pLeadernovi] == 2) { currank = "SAJ"; }
  24. else if(PlayerInfo[playerid][pMember] == 3) { currank = "JNA"; }
  25. else if(PlayerInfo[playerid][pLeadernovi] == 3) { currank = "JNA"; }
  26. else if(PlayerInfo[playerid][pMember] == 24) { currank = "SAPD"; }
  27. else if(PlayerInfo[playerid][pLeadernovi] == 24) { currank = "SAPD"; }
  28. format(string, sizeof(string), "[Megaphone] %s %s: {FFFFFF}%s", currank, ImeIgraca(playerid), result);
  29. ProxDetector(60.0, playerid, string,YELLOW,YELLOW,YELLOW,YELLOW,YELLOW);
  30. for(new i; i < sizeof(ZabranjeneReci); i++)
  31. {
  32. if(strfind(result, ZabranjeneReci[i], true) != -1)
  33. {
  34. new strMy[256];
  35.  
  36. format(strMy, sizeof(strMy), "OE AntiCheat:Igrac:[%d][%s]>%s< !",playerid,ImeIgraca(playerid),result);
  37. PosaljiAdminimaPoruku(0x48E31CFF, strMy);
  38. }
  39. }
  40. printf("%s", string);
  41. }
  42. else
  43. {
  44. SCM(playerid, COLOR_GRAD2, " Niste u policajskom vozilu!");
  45. return 1;
  46. }
  47. }
  48. else
  49. {
  50. SCM(playerid, COLOR_GRAD2, "Niste clan Tima!");
  51. return 1;
  52. }
  53. }
  54. return 1;
  55. }
Add Comment
Please, Sign In to add comment