AnthonyGates

Untitled

Jun 17th, 2015
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1. CMD:r(playerid, params[])
  2. {
  3. if(!PlayerInfo[playerid][pFrakcio])
  4. return SCM(playerid, COL_LRED, "Nem vagy egy szervezet tagja sem!");
  5. if(PlayerInfo[playerid][pMeghalt])
  6. return SCM(playerid, COL_LRED, "A sokk hatására nem tudod kezelni a rádiód!");
  7.  
  8. if(GetPlayerFrakcioTipus(playerid) == FK_ILLEGAL)
  9. {
  10. SCM(playerid,COL_LRED,"Használd a telefonodat. Egy banda / maffia nem rádiózik!");
  11. return true;
  12. }
  13.  
  14. new prox[128];
  15. if(isnull(params))
  16. return SCM(playerid, COL_MKEK, "Használat: /r [IC Rádió]");
  17. if(!OOC_Ellenorzes(playerid, "/r", params))
  18. return true;
  19. if(PlayerInfo[playerid][pFrakcio] == FRAKCIO_LSPD)
  20. format(prox, sizeof(prox),"**[CH: 911, S: 1] %s: %s", JatekosNev(playerid, true), params);
  21. if(PlayerInfo[playerid][pFrakcio] == FRAKCIO_SASD) //FBI
  22. format(prox, sizeof(prox),"**[CH: 911, S: 2] %s: %s", JatekosNev(playerid, true), params);
  23. if(PlayerInfo[playerid][pFrakcio] == FRAKCIO_SANG) //KATONASÁG
  24. format(prox, sizeof(prox),"**[CH: 911, S: 3] %s: %s", JatekosNev(playerid, true), params);
  25. if(PlayerInfo[playerid][pFrakcio] == FRAKCIO_SAFD) //MENTŐ
  26. format(prox, sizeof(prox),"**[CH: 91119, S: 1] %s: %s", JatekosNev(playerid, true), params);
  27. if(PlayerInfo[playerid][pFrakcio] == FRAKCIO_SAGOV) //ÁLLAM
  28. format(prox, sizeof(prox),"**[CH: 108, S: 1] %s: %s", JatekosNev(playerid, true), params);
  29. if(PlayerInfo[playerid][pFrakcio] == FRAKCIO_) //SZERELŐ
  30. format(prox, sizeof(prox),"**[CH: 108, S: 2] %s: %s", JatekosNev(playerid, true), params);
  31. if(PlayerInfo[playerid][pFrakcio] == FRAKCIO_) //TUDJAGECILEGÁLISFRAKCIÓ
  32. format(prox, sizeof(prox),"**[CH: 108, S: 3] %s: %s", JatekosNev(playerid, true), params);
  33. foreach(Player, p)
  34. {
  35. if(Belepve(p) && !PlayerInfo[p][pTog][0] && (PlayerInfo[p][pFrakcio] == PlayerInfo[playerid][pFrakcio]))
  36. {
  37. SendClientMessage(p, COLOR_RADIOSZIN, prox);
  38. }
  39. }
  40. format(prox, sizeof(prox), "[Rádió]%s mondja: %s", JatekosNev(playerid, true), params);
  41. ProxDetector(15.0, playerid, prox,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5, true);
  42. return true;
  43. }
  44.  
  45.  
  46. ->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>yy #define COLOR_RADIOSZIN 0xf7ea9eAA
  47.  
  48. A /rb marad ugyanolyan!
Advertisement
Add Comment
Please, Sign In to add comment