[Pomoc] Komanda /ekazi,/adm,/Mute...

Započeo Chuck:), Jul 01, 2011, 18:54:17 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Pa daj taj onda kod, i da jesi li dodavao one poruke na kraju da ti ispise "Nepoznata komanda... /help"?
Just one more time.

jesam,dodavao sam to kad se upise kriva komanda...

Daj zadnju komandu skroz do zadnje zagrade "}"
Just one more time.



Eto na PM da ne spammamo ovdje :S

----
ne mogu na pm više(prekoračio ono od 5 na sat :S)


evo:

if(strcmp(x_nr,"1",true) == 0)
{
   if(PlacedNews[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, "   Vec je postavljena nova poruka, mora prvo biti obrisana !"); return 0; }
   if(PlayerInfo[playerid][pRank] < 3) { SendClientMessage(playerid, COLOR_GREY, "   Morate biti rank 3 da bi pisali vesti na novinarskom kanalu !"); return 0; }
   if(News[hTaken1] == 0)
   {
       GetPlayerName(playerid, sendername, sizeof(sendername));
       if(strlen(text)-(strlen(x_nr)) < 9) { SendClientMessage(playerid, COLOR_GREY, "   Novinarski tekst je previse kratak !"); return 0; }
format(string, sizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd1], string, 0, strlen(string), 255);
format(string, sizeof(string), "%s",sendername); strmid(News[hContact1], string, 0, strlen(string), 255);
News[hTaken1] = 1; PlacedNews[playerid] = 1;
SendClientMessage(playerid, COLOR_WHITE, "* Postavio si vesti za hitman agenciju za hitman novinarski kanal.");
return 0;
   }
   else
   {
       SendClientMessage(playerid, COLOR_GREY, "   Mesto broj 1 je vec zauzeto !");
       return 0;
   }
}
else if(strcmp(x_nr,"2",true) == 0)
{
   if(PlacedNews[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, "   Vec je postavljena novinarska poruka,mora biti obrisana !"); return 0; }
   if(PlayerInfo[playerid][pRank] < 3) { SendClientMessage(playerid, COLOR_GREY, "   Morate biti rank 3 da bi pisali na novinarskom kanalu !"); return 0; }
   if(News[hTaken2] == 0)
   {
       GetPlayerName(playerid, sendername, sizeof(sendername));
       if(strlen(text)-(strlen(x_nr)) < 9) { SendClientMessage(playerid, COLOR_GREY, "   Novinarski tekst previse kratak !"); return 0; }
format(string, sizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd2], string, 0, strlen(string), 255);
format(string, sizeof(string), "%s",sendername); strmid(News[hContact2], string, 0, strlen(string), 255);
News[hTaken2] = 1; PlacedNews[playerid] = 1;
SendClientMessage(playerid, COLOR_WHITE, "* Postavili ste novinarsku vest na channel hitman agencije.");
return 0;
   }
   else
   {
       SendClientMessage(playerid, COLOR_GREY, "   Mesto broj 2 je vec zauzeto !");
       return 0;
   }
}
else if(strcmp(x_nr,"3",true) == 0)
{
   if(PlacedNews[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, "   Vec je postavljena vest,mora biti obrisana !"); return 0; }
   if(PlayerInfo[playerid][pRank] < 3) { SendClientMessage(playerid, COLOR_GREY, "   Morate biti rank 3 da bi pisali na novinarski channel !"); return 0; }
   if(News[hTaken3] == 0)
   {
       GetPlayerName(playerid, sendername, sizeof(sendername));
       if(strlen(text)-(strlen(x_nr)) < 9) { SendClientMessage(playerid, COLOR_GREY, "   Novinarski tekst previse kratak !"); return 0; }
format(string, sizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd3], string, 0, strlen(string), 255);
format(string, sizeof(string), "%s",sendername); strmid(News[hContact3], string, 0, strlen(string), 255);
News[hTaken3] = 1; PlacedNews[playerid] = 1;
SendClientMessage(playerid, COLOR_WHITE, "* Postavili ste novinarski tekst na channel hitman agencije.");
return 0;
   }
   else
   {
       SendClientMessage(playerid, COLOR_GREY, "   Mesto broj 3 je vec zauzeto !");
       return 0;
   }
}
else if(strcmp(x_nr,"4",true) == 0)
{
   if(PlacedNews[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, "   Vec je postavljena vest,mora biti obrisana !"); return 0; }
   if(PlayerInfo[playerid][pRank] < 3) { SendClientMessage(playerid, COLOR_GREY, "   Morate biti rank 3 da bi pisali na novinarskom kanalu !"); return 0; }
   if(News[hTaken4] == 0)
   {
       GetPlayerName(playerid, sendername, sizeof(sendername));
       if(strlen(text)-(strlen(x_nr)) < 9) { SendClientMessage(playerid, COLOR_GREY, "   Novinarski tekst je previse kratak !"); return 0; }
format(string, sizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd4], string, 0, strlen(string), 255);
format(string, sizeof(string), "%s",sendername); strmid(News[hContact4], string, 0, strlen(string), 255);
News[hTaken4] = 1; PlacedNews[playerid] = 1;
SendClientMessage(playerid, COLOR_WHITE, "* Postavili ste novinarski tekst na channel hitman agencije.");
return 0;
   }
   else
   {
       SendClientMessage(playerid, COLOR_GREY, "   Mesto broj 4 je vec zauzeto !");
       return 0;
   }
}
else if(strcmp(x_nr,"5",true) == 0)
{
   if(PlacedNews[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, "   Vec je postavljena vest,mora biti obrisana !"); return 0; }
   if(PlayerInfo[playerid][pRank] < 3) { SendClientMessage(playerid, COLOR_GREY, "   Morate biti rank 3 da bi pisali na novinarskom kanalu !"); return 0; }
   if(News[hTaken5] == 0)
   {
       GetPlayerName(playerid, sendername, sizeof(sendername));
       if(strlen(text)-(strlen(x_nr)) < 9) { SendClientMessage(playerid, COLOR_GREY, "   Novinarski tekst je previse kratak !"); return 0; }
format(string, sizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd5], string, 0, strlen(string), 255);
format(string, sizeof(string), "%s",sendername); strmid(News[hContact5], string, 0, strlen(string), 255);
News[hTaken5] = 1; PlacedNews[playerid] = 1;
SendClientMessage(playerid, COLOR_WHITE, "* Postavili ste novinarski tekst na channel hitman agencije.");
return 0;
   }
   else
   {
       SendClientMessage(playerid, COLOR_GREY, "   Mesto broj 5 je vec zauzeto !");
       return 0;
   }
}
else if(strcmp(x_nr,"delete",true) == 0)
{
   if(PlayerInfo[playerid][pRank] < 4)
   {
       SendClientMessage(playerid, COLOR_GREY, "   Morate biti rank 4 da bi brisali poruke sa novinarskog kanala !");
       return 0;
   }
   new string1[MAX_PLAYER_NAME];
   new x_tel[128];
x_tel = strtok(text, idx);
if(!strlen(x_tel)) {
   SendClientMessage(playerid, COLOR_WHITE, "Koristite: News delete [number] or News delete all.");
   return 0;
}
                   if(strcmp(x_tel,"1",true) == 0)
                   {
                       format(string, sizeof(string), "Nothing"); strmid(News[hAdd1], string, 0, strlen(string), 255);
format(string1, sizeof(string1), "No-one"); strmid(News[hContact1], string1, 0, strlen(string1), 255);
News[hTaken1] = 0;
SendClientMessage(playerid, COLOR_WHITE, "* Obrisali ste vesti broj (1) sa channela hitman agencije.");
return 0;
                   }
                   else if(strcmp(x_tel,"2",true) == 0)
                   {
                       format(string, sizeof(string), "Nothing"); strmid(News[hAdd2], string, 0, strlen(string), 255);
format(string1, sizeof(string1), "No-one"); strmid(News[hContact2], string1, 0, strlen(string1), 255);
News[hTaken2] = 0;
SendClientMessage(playerid, COLOR_WHITE, "* Obrisali ste vesti broj (2) sa channela hitman agencije.");
return 0;
                   }
                   else if(strcmp(x_tel,"3",true) == 0)
                   {
                       format(string, sizeof(string), "Nothing"); strmid(News[hAdd3], string, 0, strlen(string), 255);
format(string1, sizeof(string1), "No-one"); strmid(News[hContact3], string1, 0, strlen(string1), 255);
News[hTaken3] = 0;
SendClientMessage(playerid, COLOR_WHITE, "* Obrisali ste vesti broj (3) sa channela hitman agencije.");
return 0;
                   }
                   else if(strcmp(x_tel,"4",true) == 0)
                   {
                       format(string, sizeof(string), "Nothing"); strmid(News[hAdd4], string, 0, strlen(string), 255);
format(string1, sizeof(string1), "No-one"); strmid(News[hContact4], string1, 0, strlen(string1), 255);
News[hTaken4] = 0;
SendClientMessage(playerid, COLOR_WHITE, "* Obrisali ste vesti broj (4) sa channela hitman agencije.");
return 0;
                   }
                   else if(strcmp(x_tel,"5",true) == 0)
                   {
                       format(string, sizeof(string), "Nothing"); strmid(News[hAdd5], string, 0, strlen(string), 255);
format(string1, sizeof(string1), "No-one"); strmid(News[hContact5], string1, 0, strlen(string1), 255);
News[hTaken5] = 0;
SendClientMessage(playerid, COLOR_WHITE, "* Obrisali ste vesti broj (5) sa channela hitman agencije.");
return 0;
                   }
                   else if(strcmp(x_tel,"all",true) == 0)
                   {
                       format(string, sizeof(string), "Nothing"); strmid(News[hAdd1], string, 0, strlen(string), 255);
format(string1, sizeof(string1), "No-one"); strmid(News[hContact1], string1, 0, strlen(string1), 255);
News[hTaken1] = 0;
format(string, sizeof(string), "Nothing"); strmid(News[hAdd2], string, 0, strlen(string), 255);
format(string1, sizeof(string1), "No-one"); strmid(News[hContact2], string1, 0, strlen(string1), 255);
News[hTaken2] = 0;
format(string, sizeof(string), "Nothing"); strmid(News[hAdd3], string, 0, strlen(string), 255);
format(string1, sizeof(string1), "No-one"); strmid(News[hContact3], string1, 0, strlen(string1), 255);
News[hTaken3] = 0;
format(string, sizeof(string), "Nothing"); strmid(News[hAdd4], string, 0, strlen(string), 255);
format(string1, sizeof(string1), "No-one"); strmid(News[hContact4], string1, 0, strlen(string1), 255);
News[hTaken4] = 0;
format(string, sizeof(string), "Nothing"); strmid(News[hAdd5], string, 0, strlen(string), 255);
format(string1, sizeof(string1), "No-one"); strmid(News[hContact5], string1, 0, strlen(string1), 255);
News[hTaken5] = 0;
SendClientMessage(playerid, COLOR_WHITE, "* Obrisali ste vesti sa channela hitman agencije.");
return 0;
                   }
                   else
                   {
                       SendClientMessage(playerid, COLOR_WHITE, "Koristite: News delete [number] or News delete all.");
   return 0;
                   }
}
else { return 0; }
}
else if ((strcmp("Givehit", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Givehit")))
{
   if(PlayerInfo[playerid][pRank] < 4)
   {
       SendClientMessage(playerid, COLOR_GREY, "   Treba vam rank 4 da bi sklopili ugovor sa hitmanima !");
       return 0;
   }
   if(hitfound == 0)
   {
       SendClientMessage(playerid, COLOR_GREY, "   Nema hitova trenutno,uzmite ugovore sa radnog stola !");
       return 0;
   }
   tmp = strtok(text, idx);
   if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "Koristite: Givehit [playerid/PartOfName]");
return 0;
}
//giveplayerid = strval(tmp);
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
   if(giveplayerid != INVALID_PLAYER_ID)
   {
   if(PlayerInfo[giveplayerid][pMember] == 8 || PlayerInfo[giveplayerid][pLeader] == 8)
   {
   if(GoChase[giveplayerid] < 999)
   {
       SendClientMessage(playerid, COLOR_GREY, "   Taj hitman je vec zauzet sa ogovorom !");
return 0;
   }
   if(IsPlayerConnected(hitid))
    {
        GetPlayerName(playerid, sendername, sizeof(sendername));
        GetPlayerName(giveplayerid, giver, sizeof(giver));
        GetPlayerName(hitid, giveplayer, sizeof(giveplayer));
    format(string, sizeof(string), "* Hitman %s, je stavio hitmana %s da ubije: %s(ID:%d), za $%d.", sendername, giver, giveplayer, hitid, PlayerInfo[hitid][pHeadValue]);
    SendFamilyMessage(8, COLOR_YELLOW, string);
    GoChase[giveplayerid] = hitid;
    GetChased[hitid] = giveplayerid;
    GotHit[hitid] = 1;
    hitid = 0;
    hitfound = 0;
        return 0;
    }
    else
    {
        SendClientMessage(playerid, COLOR_GREY, "   Osoba koja treba da se ubije je trenutno offline uzmite ponovo ugovore !");
        return 0;
    }
}
else
{
   SendClientMessage(playerid, COLOR_GREY, "   Taj igrac nije hitman !");
return 0;
}
}
return 0;
}
else
{
   SendClientMessage(playerid, COLOR_GREY, "   Taj hitman nije online ili nije hitman !");
   return 0;
}
}
else if ((strcmp("Ranks", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Ranks")))
{
SendClientMessage(playerid, COLOR_WHITE, "|__________________ Rankovi Agenicje __________________|");
   for(new i=0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
   if(PlayerInfo[i][pMember] == 8||PlayerInfo[i][pLeader] == 8)
   {
GetPlayerName(i, giveplayer, sizeof(giveplayer));
       format(string, sizeof(string), "* %s: Rank %d", giveplayer,PlayerInfo[i][pRank]);
SendClientMessage(playerid, COLOR_GREY, string);
}
}
}
}
else if ((strcmp("Order", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Order")))
{
   if(OrderReady[playerid] > 0)
   {
       SendClientMessage(playerid, COLOR_GREY, "   Vec si narucio paket,pokupi ga na prednjim vratima tvoje baze !");
       return 0;
   }
   tmp = strtok(text, idx);
   if ((strcmp("1", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("1")))
{
   if(PlayerInfo[playerid][pRank] < 1) { SendClientMessage(playerid, COLOR_GREY, "   Tvoj rank nije toliko veliki da bi narucio paket !"); return 0; }
   if(GetPlayerMoney(playerid) > 4999)
   {
       SendClientMessage(playerid, COLOR_WHITE, "* Narucio si paket broj 1 ($5000), Bice dostavljeno na prednja vrata tvoje baze.");
       OrderReady[playerid] = 1;
       return 0;
   }
   else
   {
       SendClientMessage(playerid, COLOR_GREY,"   Ne mozete priustiti taj paket !");
       return 0;
   }
}
else if ((strcmp("2", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("2")))
{
   if(PlayerInfo[playerid][pRank] < 2) { SendClientMessage(playerid, COLOR_GREY, "   Tvoj rank nije dovoljno velik da bi narucio paket !"); return 0; }
   if(GetPlayerMoney(playerid) > 5999)
   {
       SendClientMessage(playerid, COLOR_WHITE, "* Narucio si paket broj 2 ($6000),  Bice dostavljeno na prednja vrata tvoje baze.");
       OrderReady[playerid] = 2;
       return 0;
   }
   else
   {
       SendClientMessage(playerid, COLOR_GREY,"   Ne mozete priustiti taj paket !");
       return 0;
   }
}
else if ((strcmp("3", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("3")))
{
   if(PlayerInfo[playerid][pRank] < 2) { SendClientMessage(playerid, COLOR_GREY, "   Tvoj rank nije dovoljno velik da bi narucio paket !"); return 0; }
   if(GetPlayerMoney(playerid) > 5999)
   {
       SendClientMessage(playerid, COLOR_WHITE, "* Narucio si paket broj 3 ($6000),  Bice dostavljeno na prednja vrata tvoje baze.");
       OrderReady[playerid] = 3;
       return 0;
   }
   else
   {
       SendClientMessage(playerid, COLOR_GREY,"   Ne mozete priustiti taj paket !");
       return 0;
   }
}
else if ((strcmp("4", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("4")))
{
   if(PlayerInfo[playerid][pRank] < 3) { SendClientMessage(playerid, COLOR_GREY, "   Tvoj rank nije dovoljno velik da bi narucio paket !"); return 0; }
   if(GetPlayerMoney(playerid) > 7999)
   {
       SendClientMessage(playerid, COLOR_WHITE, "* Narucio si paket broj 4 ($8000),  Bice dostavljeno na prednja vrata tvoje baze.");
       OrderReady[playerid] = 4;
       return 0;
   }
   else
   {
       SendClientMessage(playerid, COLOR_GREY,"   Ne mozete priustiti taj paket !");
       return 0;
   }
}
else if ((strcmp("5", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("5")))
{
   if(PlayerInfo[playerid][pRank] < 3) { SendClientMessage(playerid, COLOR_GREY, "   Tvoj rank nije dovoljno velik da bi narucio paket !"); return 0; }
   if(GetPlayerMoney(playerid) > 7999)
   {
       SendClientMessage(playerid, COLOR_WHITE, "* Narucio si paket broj 5 ($8000),  Bice dostavljeno na prednja vrata tvoje baze.");
       OrderReady[playerid] = 5;
       return 0;
   }
   else
   {
       SendClientMessage(playerid, COLOR_GREY,"   Ne mozete priustiti taj paket !");
       return 0;
   }
}
else if ((strcmp("6", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("6")))
{
   if(PlayerInfo[playerid][pRank] < 4) { SendClientMessage(playerid, COLOR_GREY, "   Tvoj rank nije dovoljno velik da bi narucio paket !"); return 0; }
   if(GetPlayerMoney(playerid) > 8499)
   {
       SendClientMessage(playerid, COLOR_WHITE, "* Narucio si paket broj 6 ($8500),  Bice dostavljeno na prednja vrata tvoje baze.");
       OrderReady[playerid] = 6;
       return 0;
   }
   else
   {
       SendClientMessage(playerid, COLOR_GREY,"   Ne mozete priustiti taj paket !");
       return 0;
   }
}
else if ((strcmp("7", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("7")))
{
   if(PlayerInfo[playerid][pRank] < 4) { SendClientMessage(playerid, COLOR_GREY, "   Tvoj rank nije dovoljno velik da bi narucio paket !"); return 0; }
   if(GetPlayerMoney(playerid) > 8499)
   {
       SendClientMessage(playerid, COLOR_WHITE, "* Narucio si paket broj 7 ($8500),  Bice dostavljeno na prednja vrata tvoje baze.");
       OrderReady[playerid] = 7;
       return 0;
   }
   else
   {
       SendClientMessage(playerid, COLOR_GREY,"   Ne mozete priustiti taj paket !");
       return 0;
   }
}
else
{
   SendClientMessage(playerid, COLOR_WHITE, "|__________________ Paketi __________________|");
   if(PlayerInfo[playerid][pRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "|(1) ($5000 ) Rank 1 - 5: Knife, Desert Eagle, MP5, Shotgun"); }
   if(PlayerInfo[playerid][pRank] >= 2) { SendClientMessage(playerid, COLOR_GREY, "|(2) ($6000 ) Rank 2 - 5: Knife, Desert Eagle, M4, MP5, Shotgun"); }
   if(PlayerInfo[playerid][pRank] >= 2) { SendClientMessage(playerid, COLOR_GREY, "|(3) ($6000 ) Rank 2 - 5: Knife, Desert Eagle, AK47, MP5, Shotgun"); }
   if(PlayerInfo[playerid][pRank] >= 3) { SendClientMessage(playerid, COLOR_GREY, "|(4) ($8000) Rank 3 - 5: Knife, Desert Eagle, M4, MP5, Shotgun, Sniper"); }
   if(PlayerInfo[playerid][pRank] >= 3) { SendClientMessage(playerid, COLOR_GREY, "|(5) ($8000) Rank 3 - 5: Knife, Desert Eagle, AK47, MP5, Shotgun, Sniper"); }
   if(PlayerInfo[playerid][pRank] >= 4) { SendClientMessage(playerid, COLOR_GREY, "|(6) ($8500) Rank 4 - 5: Knife, Desert Eagle, M4, MP5, Shotgun, Sniper"); }
   if(PlayerInfo[playerid][pRank] >= 4) { SendClientMessage(playerid, COLOR_GREY, "|(7) ($8500) Rank 4 - 5: Knife, Desert Eagle, AK47, MP5, Shotgun, Sniper"); }
   SendClientMessage(playerid, COLOR_WHITE, "|________________________________________________________|");
   return 0;
}
}
else if ((strcmp("Logout", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Logout")))
{
   SendClientMessage(playerid, COLOR_WHITE, "* Ugasio si tvoj laptop, i diskonekotvan si iz agencije.");
      ConnectedToPC[playerid] = 0;
   return 0;
}
else
{
   SendClientMessage(playerid, COLOR_WHITE, "|___ Hitman Agencija ___|");
   SendClientMessage(playerid, COLOR_YELLOW2, "| - News");
   SendClientMessage(playerid, COLOR_YELLOW2, "| - Contracts");
   SendClientMessage(playerid, COLOR_YELLOW2, "| - Givehit");
   SendClientMessage(playerid, COLOR_YELLOW2, "| - Backup");
   SendClientMessage(playerid, COLOR_YELLOW2, "| - Order");
   SendClientMessage(playerid, COLOR_YELLOW2, "| - Ranks");
   SendClientMessage(playerid, COLOR_YELLOW2, "| - Logout");
   SendClientMessage(playerid, COLOR_YELLOW2, "|");
SendClientMessage(playerid, COLOR_WHITE, "|______________|00:00|");
   return 0;
}
   return 0;
}
if(CallLawyer[playerid] == 111)
{
   new idx;
   tmp = strtok(text, idx);
   if ((strcmp("yes", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("yes")))
{
   GetPlayerName(playerid, sendername, sizeof(sendername));
   format(string, sizeof(string), "** %s je u zatvoru, i treba mu advokat. Idi do policijske stanice.", sendername);
    SendJobMessage(2, TEAM_AZTECAS_COLOR, string);
    SendJobMessage(2, TEAM_AZTECAS_COLOR, "* Kad si u policijskoj stanici, pitaj policajca da ti dozvoli sa /prihvati lawyer.");
    SendClientMessage(playerid, COLOR_LIGHTRED, "Poruka je poslata svim advokatima, molimo sacekajte.");
    WantLawyer[playerid] = 0;
CallLawyer[playerid] = 0;
    return 0;
}
else
{
   SendClientMessage(playerid, COLOR_LIGHTRED, "Nema dostupnih advokata vise, Kazna zatvora je zapoceta.");
   WantLawyer[playerid] = 0;
CallLawyer[playerid] = 0;
   return 0;
}
}
if(TalkingLive[playerid] != 255)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo[playerid][pJob] == 6)
{
   format(string, sizeof(string), "LiveNR %s: %s", sendername, text);
OOCNews(COLOR_LIGHTGREEN, string);
}
else
{
   format(string, sizeof(string), "Intervju uzivo %s: %s", sendername, text);
OOCNews(COLOR_LIGHTGREEN, string);
}
return 0;
}
if(Mobile[playerid] != 255)
{
new idx;
tmp = strtok(text, idx);
GetPlayerName(playerid, sendername, sizeof(sendername));
if(UnidentifedCall[playerid] == 1)
{
   format(string, sizeof(string), "Stranac kaze (cellphone): %s", text);
}
else
{
format(string, sizeof(string), "%s kaze (cellphone): %s", sendername, text);
}
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
if(Mobile[playerid] == 914)
{
if(!strlen(tmp))
{
SendClientMessage(playerid, TEAM_CYAN_COLOR, "Dispecer: Izvinite, ne razumem vas?");
return 0;
}
new turner[MAX_PLAYER_NAME];
new wanted[128];
GetPlayerName(playerid, turner, sizeof(turner));
SendClientMessage(playerid, TEAM_CYAN_COLOR, "Dispecer: Poslali smo sve jedinice u tu oblast.");
SendClientMessage(playerid, TEAM_CYAN_COLOR, "Hvala vam sto ste prijavili incident");
format(wanted, sizeof(wanted), "Dispecer: Svim jedinicama: Pozivalac: %s",turner);
SendTeamBeepMessage(1, TEAM_CYAN_COLOR, wanted);
format(wanted, sizeof(wanted), "Dispecer: Incident: %s",text);
SendTeamMessage(1, TEAM_CYAN_COLOR, wanted);
new Float:trace_x, Float:trace_y, Float:trace_z;
GetPlayerPos(playerid, trace_x, trace_y, trace_z);
emdtrace = 1; emdtrace_x = trace_x; emdtrace_y = trace_y; emdtrace_z = trace_z;
SendClientMessage(playerid, COLOR_GRAD2, "   Prekinuli su...");
Mobile[playerid] = 255;
return 0;
}
if(Mobile[playerid] == 913)
{
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_ALLDEPT, "EMERGENCY: Izvinite,ne razumem?");
return 0;
}
if ((strcmp("no", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("no")))
{
new turner[MAX_PLAYER_NAME];
new wanted[128];
GetPlayerName(playerid, turner, sizeof(turner));
SendClientMessage(playerid, COLOR_DBLUE, "Policijski dispecer: Obavestili smo sve jedinice u toj oblasti.");
SendClientMessage(playerid, COLOR_DBLUE, "Hvala vam na prijavi zlocina");
format(wanted, sizeof(wanted), "HQ: Svim jedinicama APB: Reporter: %s",turner);
SendFamilyMessage(1, COLOR_DBLUE, wanted);
format(wanted, sizeof(wanted), "HQ: Zlocin: %s, Osumnjiceni: Nepoznat",PlayerCrime[playerid][pAccusing]);
SendFamilyMessage(1, COLOR_DBLUE, wanted);
new Float:trace_x, Float:trace_y, Float:trace_z;
GetPlayerPos(playerid, trace_x, trace_y, trace_z);
pdtrace = 1; pdtrace_x = trace_x; pdtrace_y = trace_y; pdtrace_z = trace_z;
SendClientMessage(playerid, COLOR_GRAD2, "   Prekinuli su...");
Mobile[playerid] = 255;
return 0;
}
new badguy;
badguy = ReturnUser(tmp);
if (IsPlayerConnected(badguy))
{
   if(badguy != INVALID_PLAYER_ID)
   {
if (gTeam[badguy] == 2 || gTeam[badguy] == 1)
{
SendClientMessage(playerid, 0x2641FEAA, "Policijski dispecer: Morate da obavestite ministarstvo unutrasnjih poslova. Ovo je hitna linija");
SendClientMessage(playerid, 0xBFC0C2FF, "   Prekinuli su...");
Mobile[playerid] = 255;
return 0;
}
if (WantedPoints[badguy] > 0)
{
SendClientMessage(playerid, 0x2641FEAA, "Policijski dispecer: Jedinice vec rade na tom slucaju");
SendClientMessage(playerid, 0x2641FEAA, "Hvala vam na prijavi tog zlocina");
SendClientMessage(playerid, 0xBFC0C2FF, "   Prekinuli su...");
Mobile[playerid] = 255;
return 0;
}
if (badguy == playerid)
{
SendClientMessage(playerid, 0x2641FEAA, "Policijski dispecer: Ne zajebavaj se, Ovo je hitna linija.");
SendClientMessage(playerid, 0xBFC0C2FF, "   Prekinuli su...");
Mobile[playerid] = 255;
return 0;
}
SendClientMessage(playerid, 0x2641FEAA, "Policijski dispecer: Poslali smo sve jedinice u tu oblast.");
SendClientMessage(playerid, 0x2641FEAA, "Hvala vam na prijavi tog zlocina");
new Float:trace_x, Float:trace_y, Float:trace_z;
GetPlayerPos(playerid, trace_x, trace_y, trace_z);
pdtrace = 1; pdtrace_x = trace_x; pdtrace_y = trace_y; pdtrace_z = trace_z;
SetPlayerCriminal(badguy,playerid, PlayerCrime[playerid][pAccusing]);
if(WantedPoints[badguy] > 0) { } else { WantedPoints[badguy] += 2; }
SendClientMessage(playerid, COLOR_GRAD2, "   Prekinuli su...");
Mobile[playerid] = 255;
return 0;
}
return 0;
}
else
{
format(string, sizeof(string), "Policijski dispecer: Nemam informacije za %s, da li ste sigurni da je to pravo ime?",tmp);
SendClientMessage(playerid, COLOR_DBLUE, string);
return 0;
}
}
if(Mobile[playerid] == 912)
{
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_ALLDEPT, "EMERGENCY: Izvinite ne razumem?");
return 0;
}
strmid(PlayerCrime[playerid][pAccusing], text, 0, strlen(text), 255);
SendClientMessage(playerid, COLOR_DBLUE, "Policija HQ: Ako znate ime zlocinca ili deo imena,kazite ga ili kazite no.");
Mobile[playerid] = 913;
return 0;
}
if(Mobile[playerid] == 911)
{
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_ALLDEPT, "EMERGENCY: Izvinite ne razumem ,police ili paramedic?");
return 0;
}
else if ((strcmp("police", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("police")))
{
SendClientMessage(playerid, COLOR_ALLDEPT, "EMERGENCY: Povezujem vas sa Policija HQ,molimo sacekajte.");
Mobile[playerid] = 912;
SendClientMessage(playerid, COLOR_DBLUE, "HQ: Molimo dajte mi kratak opis zlocina.");
return 0;
}
else if ((strcmp("paramedic", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("paramedic")))
{
SendClientMessage(playerid, COLOR_ALLDEPT, "EMERGENCY: Povezujem vas sa Bolnicarima HQ ,molimo sacekajte.");
Mobile[playerid] = 914;
SendClientMessage(playerid, TEAM_CYAN_COLOR, "Dispecer: Molimo dajte mi kratak opis incidenta.");
return 0;
}
else
{
SendClientMessage(playerid, COLOR_ALLDEPT, "EMERGENCY: Izvinite ne razumem ,police ili paramedic?");
return 0;
}
}
if(Mobile[playerid] == 3900)
{
SendFamilyMessage(9, COLOR_GREEN, "Imate jednu novu poruku:");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "[ID:%d] %s kaze: %s", playerid, sendername, text);
SendFamilyMessage(9, COLOR_GREEN, string);
SendClientMessage(playerid, 0x9EC73DAA, "Cable News Network: Hvala vam na novim informacijama !");
SendClientMessage(playerid, 0xBFC0C2FF, "   Prekinuli su...");
Mobile[playerid] = 255;
return 0;
}
if(IsPlayerConnected(Mobile[playerid]))
{
   if(Mobile[Mobile[playerid]] == playerid)
   {
if(PlayerInfo[Mobile[playerid]][pSpeaker] == 1)
{
ProxDetector(20.0, Mobile[playerid], string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
}
else
{
   SendClientMessage(Mobile[playerid], COLOR_YELLOW,string);
}
}
}
else
{
SendClientMessage(playerid, COLOR_YELLOW,"Nema nikoga");
}
return 0;
}
if (BusShowLocation[playerid][0] == 1)
{
   new idx;
   tmp = strtok(text, idx);
   if ((strcmp("yes", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("yes")))
{
SetPlayerCheckpoint(playerid, BusShowLocation[playerid][1], BusShowLocation[playerid][2], BusShowLocation[playerid][3], 3.0);
SendClientMessage(playerid, COLOR_YELLOW, "Tamo je lokacija (red checkpoint), bolje pozurite!");
BusShowLocation[playerid][0] = 0;
BusShowLocationC[playerid] = 1;
return 0;
}
else
{
BusShowLocation[playerid][0] = 0;
return 0;
}
}
if (realchat)
{
   if(gPlayerLogged[playerid] == 0)
   {
       return 0;
      }
GetPlayerName(playerid, sendername, sizeof(sendername));
if(!IsPlayerInAnyVehicle(playerid))
{
if(PlayerInfo[playerid][pMaskuse] == 1)
{
format(string, sizeof(string), "Stranac kaze: %s", text);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
}
else
{
    format(string, sizeof(string), "%s kaze: %s", sendername, text);
    ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
}
}
else
{
   new carid = GetPlayerVehicleID(playerid);
   new pveh = GetVehicleModel(GetPlayerVehicleID(playerid));
   if(IsABike(carid) || IsAOBike(carid) || IsAPizzabike(carid) || IsAPlane(carid) || IsABoat(carid) || IsASweeper(carid) || IsAHarvest(carid) || IsADrugHarvest(carid) || IsATank(carid) || pveh == 523 || pveh == 480 || pveh == 567 || pveh == 533 || pveh == 555 || pveh == 539 || pveh == 572 || pveh == 571 || pveh == 530 || pveh == 457 || pveh == 575 || pveh == 536 || pveh == 424)
   {
       if(PlayerInfo[playerid][pMaskuse] == 1)
{
format(string, sizeof(string), "Stranac kaze: %s", text);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
}
else
{
    format(string, sizeof(string), "%s kaze: %s", sendername, text);
    ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
}
   }
   else
   {
    if(VehicleWindows[GetPlayerVehicleID(playerid)] == 0)
    {
    if(PlayerInfo[playerid][pMaskuse] == 1)
{
format(string, sizeof(string), "(Zatvorena prozor) Stranac kaze: %s", text);
ProxDetector(10.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
}
else
{
    format(string, sizeof(string), "(Zatvoren prozor) %s kaze: %s", sendername, text);
    ProxDetector(10.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
}
}
else
{
    if(PlayerInfo[playerid][pMaskuse] == 1)
{
format(string, sizeof(string), "(Prozor otvoren) Stranac kaze: %s", text);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
}
else
{
    format(string, sizeof(string), "(Prozor otvoren) %s kaze: %s", sendername, text);
    ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
}
}
}
}
return 0;
}
return 1;
}
Poslednja Izmena: Jul 01, 2011, 20:57:23 POSLE PODNE od pHon