Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:r(playerid, params[])
- {
- if(!PlayerInfo[playerid][pFrakcio])
- return SCM(playerid, COL_LRED, "Nem vagy egy szervezet tagja sem!");
- if(PlayerInfo[playerid][pMeghalt])
- return SCM(playerid, COL_LRED, "A sokk hatására nem tudod kezelni a rádiód!");
- if(GetPlayerFrakcioTipus(playerid) == FK_ILLEGAL)
- {
- SCM(playerid,COL_LRED,"Használd a telefonodat. Egy banda / maffia nem rádiózik!");
- return true;
- }
- new prox[128];
- if(isnull(params))
- return SCM(playerid, COL_MKEK, "Használat: /r [IC Rádió]");
- if(!OOC_Ellenorzes(playerid, "/r", params))
- return true;
- if(PlayerInfo[playerid][pFrakcio] == FRAKCIO_LSPD)
- format(prox, sizeof(prox),"**[CH: 911, S: 1] %s: %s", JatekosNev(playerid, true), params);
- if(PlayerInfo[playerid][pFrakcio] == FRAKCIO_SASD) //FBI
- format(prox, sizeof(prox),"**[CH: 911, S: 2] %s: %s", JatekosNev(playerid, true), params);
- if(PlayerInfo[playerid][pFrakcio] == FRAKCIO_SANG) //KATONASÁG
- format(prox, sizeof(prox),"**[CH: 911, S: 3] %s: %s", JatekosNev(playerid, true), params);
- if(PlayerInfo[playerid][pFrakcio] == FRAKCIO_SAFD) //MENTŐ
- format(prox, sizeof(prox),"**[CH: 91119, S: 1] %s: %s", JatekosNev(playerid, true), params);
- if(PlayerInfo[playerid][pFrakcio] == FRAKCIO_SAGOV) //ÁLLAM
- format(prox, sizeof(prox),"**[CH: 108, S: 1] %s: %s", JatekosNev(playerid, true), params);
- if(PlayerInfo[playerid][pFrakcio] == FRAKCIO_) //SZERELŐ
- format(prox, sizeof(prox),"**[CH: 108, S: 2] %s: %s", JatekosNev(playerid, true), params);
- if(PlayerInfo[playerid][pFrakcio] == FRAKCIO_) //TUDJAGECILEGÁLISFRAKCIÓ
- format(prox, sizeof(prox),"**[CH: 108, S: 3] %s: %s", JatekosNev(playerid, true), params);
- foreach(Player, p)
- {
- if(Belepve(p) && !PlayerInfo[p][pTog][0] && (PlayerInfo[p][pFrakcio] == PlayerInfo[playerid][pFrakcio]))
- {
- SendClientMessage(p, COLOR_RADIOSZIN, prox);
- }
- }
- format(prox, sizeof(prox), "[Rádió]%s mondja: %s", JatekosNev(playerid, true), params);
- ProxDetector(15.0, playerid, prox,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5, true);
- return true;
- }
- ->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>yy #define COLOR_RADIOSZIN 0xf7ea9eAA
- A /rb marad ugyanolyan!
Advertisement
Add Comment
Please, Sign In to add comment