Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:m(playerid, params[])
- {
- if(!isPlayerLogged[playerid]) return GRESKA(playerid, "Morate biti ulogovani da bi koristili komande!");
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pMute] > 0)
- {
- SCMF(playerid, WHITE, "{FF0000}OE-AC: {FFFFFF}Ne mozete pricati jos %d minuta, oduzeto vam je pravo govora!",PlayerInfo[playerid][pMute]);
- return 1;
- }
- new tmpcar = GetPlayerVehicleID(playerid);
- new string[256];
- new result[126];
- if(sscanf(params, "s[126]", result)) return SCM(playerid, COLOR_GRAD2, "Koristi: /m [tekst]");
- if(IsACop(playerid))
- {
- if(!IsACopCar(tmpcar) || !IsAnSAJCar(tmpcar) || !IsASAPDCar(tmpcar)|| !IsNgCar(tmpcar))
- {
- new currank[64];
- if(PlayerInfo[playerid][pMember] == 1) { currank = "Policija"; }
- else if(PlayerInfo[playerid][pLeadernovi] == 1) { currank = "Policija"; }
- else if(PlayerInfo[playerid][pMember] == 2) { currank = "SAJ"; }
- else if(PlayerInfo[playerid][pLeadernovi] == 2) { currank = "SAJ"; }
- else if(PlayerInfo[playerid][pMember] == 3) { currank = "JNA"; }
- else if(PlayerInfo[playerid][pLeadernovi] == 3) { currank = "JNA"; }
- else if(PlayerInfo[playerid][pMember] == 24) { currank = "SAPD"; }
- else if(PlayerInfo[playerid][pLeadernovi] == 24) { currank = "SAPD"; }
- format(string, sizeof(string), "[Megaphone] %s %s: {FFFFFF}%s", currank, ImeIgraca(playerid), result);
- ProxDetector(60.0, playerid, string,YELLOW,YELLOW,YELLOW,YELLOW,YELLOW);
- for(new i; i < sizeof(ZabranjeneReci); i++)
- {
- if(strfind(result, ZabranjeneReci[i], true) != -1)
- {
- new strMy[256];
- format(strMy, sizeof(strMy), "OE AntiCheat:Igrac:[%d][%s]>%s< !",playerid,ImeIgraca(playerid),result);
- PosaljiAdminimaPoruku(0x48E31CFF, strMy);
- }
- }
- printf("%s", string);
- }
- else
- {
- SCM(playerid, COLOR_GRAD2, " Niste u policajskom vozilu!");
- return 1;
- }
- }
- else
- {
- SCM(playerid, COLOR_GRAD2, "Niste clan Tima!");
- return 1;
- }
- }
- return 1;
- }
Add Comment
Please, Sign In to add comment