[Pomoc]Dialog

Započeo Impulseâ„¢, Januar 14, 2012, 15:17:10 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:GF edit
Detaljan opis problema:Napravim komandu u dijalogu(DIALOG_STYLE_LIST) i napravi ovako i kompajlira,sve uredu,ali ingame nece da otvori ni jednu komandu
Dio skripte:
if(response)
        {
            switch(3)
            {
case 3:
{
                        switch(listitem)
                        {
                       case 0:
                       {
                           if(GetPlayerMoney(playerid) < 300) return SendClientMessage(playerid, 0xFFFFFF, "Nemate dovoljno novca.");
                           GivePlayerMoney(playerid, -300);
                           ShowPlayerDialog(playerid, 32, DIALOG_STYLE_MSGBOX,"{FFAF00}jk","{FFAF00}nije bitno.\n{C3C3C3}nije bitno", "Uredu", "");
                           }
                           case 1:
                       {
                               if(GetPlayerMoney(playerid) < 300) return SendClientMessage(playerid, 0xFFFFFF, "Nemate dovoljno novca.");
                           GivePlayerMoney(playerid, -300);
                           ShowPlayerDialog(playerid, 32, DIALOG_STYLE_MSGBOX,"{FFAF00}nije bitno","{FFAF00}nije bitno.\n{C3C3C3}Cestitamo,ako zelite i drugi prijavite se u kancelariji", "Uredu", "");
                           }
                           case 2:
                           {
                               if(GetPlayerMoney(playerid) < 300) return SendClientMessage(playerid, 0xFFFFFF, "Nemate dovoljno novca.");
                           GivePlayerMoney(playerid, -300);
                           ShowPlayerDialog(playerid, 32, DIALOG_STYLE_MSGBOX,"{FFAF00}nije bitno","{FFAF00}neka poruka.\n{C3C3C3}Cestitamo,ako zelite i drugi prijavite se u kancelariji", "Uredu", "");
                           }
                        }
                   }
  }   
       return 0;
          }


if(strcmp(cmd, "/learnlang", true)== 0)
{
    if(IsPlayerConnected(playerid))
    {
            if(PlayerToPoint(4.0, playerid,421.3947,-81.8743,1001.8047))
            {
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "{00C0FF}[e]", "{FFFFFF}1.{00C0FF}e{FFFFFF}\n{FFFFFF}2.{00C0FF}e{FFFFFF}\n{FFFFFF}3.{00C0FF}e{FFFFFF}", "Uredu", "Odustani");
return 1;
}
            else
            {
        SendClientMessage(playerid, WHITE, "("COL_RED"Greska{FFFFFF}!) Ne nalazite se u "COL_RED"negdje!");
    return 1;
            }
}
return 1;
}

A kad stavim ovako
if(response)
        {
            switch(dialogid)
            {
case 3:
{
                        switch(listitem)
                        {
                       case 0:
                       {
                           if(GetPlayerMoney(playerid) < 300) return SendClientMessage(playerid, 0xFFFFFF, "Nemate dovoljno novca.");
                           GivePlayerMoney(playerid, -300);
                           ShowPlayerDialog(playerid, 32, DIALOG_STYLE_MSGBOX,"{FFAF00}jk","{FFAF00}nije bitno.\n{C3C3C3}nije bitno", "Uredu", "");
                           }
                           case 1:
                       {
                               if(GetPlayerMoney(playerid) < 300) return SendClientMessage(playerid, 0xFFFFFF, "Nemate dovoljno novca.");
                           GivePlayerMoney(playerid, -300);
                           ShowPlayerDialog(playerid, 32, DIALOG_STYLE_MSGBOX,"{FFAF00}nije bitno","{FFAF00}nije bitno.\n{C3C3C3}Cestitamo,ako zelite i drugi prijavite se u kancelariji", "Uredu", "");
                           }
                           case 2:
                           {
                               if(GetPlayerMoney(playerid) < 300) return SendClientMessage(playerid, 0xFFFFFF, "Nemate dovoljno novca.");
                           GivePlayerMoney(playerid, -300);
                           ShowPlayerDialog(playerid, 32, DIALOG_STYLE_MSGBOX,"{FFAF00}nije bitno","{FFAF00}neka poruka.\n{C3C3C3}Cestitamo,ako zelite i drugi prijavite se u kancelariji", "Uredu", "");
                           }
                        }
                   }
  }   
       return 0;
          }

nece da me loginuje
Neke slike/video za lakse dobivanje pomoci(neobavezno):

Probaj ovako...


if(strcmp(cmd, "/learnlang", true)== 0)
{
      if (!PlayerToPoint(4, playerid,421.3947,-81.8743,1001.8047)) return SendClientMessage(playerid, -1, "Niste na dobrom mestu");
      {
            ShowPlayerDialog(playerid, 1002, DIALOG_STYLE_LIST, "{00C0FF}[e]", "{FFFFFF}1.{00C0FF}e{FFFFFF}\n{FFFFFF}2.{00C0FF}e{FFFFFF}\n{FFFFFF}3.{00C0FF}e{FFFFFF}", "Uredu", "Odustani");
      }
      return 1;
}


if(dialogid == 1002 && response)
    {

        switch(listitem)
        {
            case 0:
            {
            if(GetPlayerMoney(playerid) < 300) return SendClientMessage(playerid, 0xFFFFFF, "Nemate dovoljno novca.");
            GivePlayerMoney(playerid, -300);
            ShowPlayerDialog(playerid, 32, DIALOG_STYLE_MSGBOX,"{FFAF00}jk","{FFAF00}nije bitno.\n{C3C3C3}nije bitno", "Uredu", "");
            }
            case 1:
            {
            if(GetPlayerMoney(playerid) < 300) return SendClientMessage(playerid, 0xFFFFFF, "Nemate dovoljno novca.");
            GivePlayerMoney(playerid, -300);
            ShowPlayerDialog(playerid, 32, DIALOG_STYLE_MSGBOX,"{FFAF00}nije bitno","{FFAF00}nije bitno.\n{C3C3C3}Cestitamo,ako zelite i drugi prijavite se u kancelariji", "Uredu", "");
            }
            case 2:
            {
            if(GetPlayerMoney(playerid) < 300) return SendClientMessage(playerid, 0xFFFFFF, "Nemate dovoljno novca.");
            GivePlayerMoney(playerid, -300);
            ShowPlayerDialog(playerid, 32, DIALOG_STYLE_MSGBOX,"{FFAF00}nije bitno","{FFAF00}neka poruka.\n{C3C3C3}Cestitamo,ako zelite i drugi prijavite se u kancelariji", "Uredu", "");
            }
        }
    }
Poslednja Izmena: Januar 14, 2012, 16:21:01 POSLE PODNE od [CЯP] joXy_

Citat: [CЯP] joXy_ poslato Januar 14, 2012, 16:19:18 POSLE PODNE
Probaj ovako...


if(strcmp(cmd, "/learnlang", true)== 0)
{
      if (!PlayerToPoint(4, playerid,421.3947,-81.8743,1001.8047)) return SendClientMessage(playerid, -1, "Niste na dobrom mestu");
      {
            ShowPlayerDialog(playerid, 1002, DIALOG_STYLE_LIST, "{00C0FF}[e]", "{FFFFFF}1.{00C0FF}e{FFFFFF}\n{FFFFFF}2.{00C0FF}e{FFFFFF}\n{FFFFFF}3.{00C0FF}e{FFFFFF}", "Uredu", "Odustani");
      }
      return 1;
}


if(dialogid == 1002 && response)
    {

        switch(listitem)
        {
            case 0:
            {
            if(GetPlayerMoney(playerid) < 300) return SendClientMessage(playerid, 0xFFFFFF, "Nemate dovoljno novca.");
            GivePlayerMoney(playerid, -300);
            ShowPlayerDialog(playerid, 32, DIALOG_STYLE_MSGBOX,"{FFAF00}jk","{FFAF00}nije bitno.\n{C3C3C3}nije bitno", "Uredu", "");
            }
            case 1:
            {
            if(GetPlayerMoney(playerid) < 300) return SendClientMessage(playerid, 0xFFFFFF, "Nemate dovoljno novca.");
            GivePlayerMoney(playerid, -300);
            ShowPlayerDialog(playerid, 32, DIALOG_STYLE_MSGBOX,"{FFAF00}nije bitno","{FFAF00}nije bitno.\n{C3C3C3}Cestitamo,ako zelite i drugi prijavite se u kancelariji", "Uredu", "");
            }
            case 2:
            {
            if(GetPlayerMoney(playerid) < 300) return SendClientMessage(playerid, 0xFFFFFF, "Nemate dovoljno novca.");
            GivePlayerMoney(playerid, -300);
            ShowPlayerDialog(playerid, 32, DIALOG_STYLE_MSGBOX,"{FFAF00}nije bitno","{FFAF00}neka poruka.\n{C3C3C3}Cestitamo,ako zelite i drugi prijavite se u kancelariji", "Uredu", "");
            }
        }
    }

Moze se loginovat,ali komande ne reaguju  ???



Ajd ovako probaj...

if(!strcmp(cmdtext, "/learnlang", true))
{
if(PlayerToPoint(playerid, 5,421.3947,-81.8743,1001.8047))
{
ShowPlayerDialog(playerid, 1002, DIALOG_STYLE_LIST, "{00C0FF}[e]", "{FFFFFF}1.{00C0FF}e{FFFFFF}\n{FFFFFF}2.{00C0FF}e{FFFFFF}\n{FFFFFF}3.{00C0FF}e{FFFFFF}", "Uredu", "Odustani");
}
else
{
SendClientMessage(playerid, -1,"Nisi na dobrom mestu.");
}
return 1;
}


PS: Jel koristis ZCMD?
Poslednja Izmena: Januar 14, 2012, 21:46:11 POSLE PODNE od [CЯP] joXy_

ma isto opet ne pokrece ni jednu komandu

Citat: [GS]Impulse! poslato Januar 14, 2012, 21:51:28 POSLE PODNE
ma isto opet ne pokrece ni jednu komandu
Niti jednu komandu u modu?
Pa sta nisi odmah rekao -.- ja se je*em oko ove jedne

CitatMoze se loginovat,ali komande ne reaguju  ???
Svugdje pisu komande



Daj public OnPlayerCommandText pa da vidimo

Citat: [CЯP] joXy_ poslato Januar 14, 2012, 22:12:57 POSLE PODNE
Daj public OnPlayerCommandText pa da vidimo
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/drink", true))
{
if (PlayerToPoint(5.0, playerid,1761.0394,-1355.6870,15.7575) || PlayerToPoint(5.0, playerid,1919.7634,-1769.6547,17.9766)|| PlayerToPoint(5.0, playerid,1218.4104,-1425.2007,13.3415))
{
ShowPlayerDialog(playerid, 9, DIALOG_STYLE_LIST, "Donator Cafe Bar", "\nVoda (1$)\nCoca-Cola (2$)\nFanta (2$)\nPivo (4$)\nVino (15$)", "Kupi", "Odustani");
return 1;
        }
        else
{
    SendClientMessage(playerid, WHITE, "("COL_RED"Greska{FFFFFF}!) Niste za sankom!");
}
return 1;
if(strcmp(cmd, "/takemats", true) == 0) // By Ellis
{
    if(IsPlayerConnected(playerid))
    {
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, COLOR_WHITE, "Koriscenje: /takemats [kolicina]");
            return 1;
        }
if(PlayerInfo[playerid][pRank] < 5)
{
SendClientMessage(playerid,COLOR_WHITE,"Morate biti minimum rank 5!");
return 1;
}
        new mammount;
        mammount = strval(tmp);
if(PlayerToPoint(4.0, playerid,1263.4899,-795.5519,1084.0078))
{
if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
{//lcn
if(mammount > materijal[lcnmat]) { SendClientMessage(playerid, COLOR_GREY, "Nema toliko materijala u sefu."); return 1; }
PlayerInfo[playerid][pMats] += mammount;
    materijal[lcnmat] -= mammount;
format(string, sizeof(string), "Uzeli ste {FFFFFF}%d "COL_SVPLAVA"materijala!", mammount);
SendClientMessage(playerid, SVETLOPLAVA, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s uzima paket materijala iz sefa.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste clan mafije/bande!");
}
}
else if(PlayerToPoint(4.0, playerid,956.8430,-54.1077,1001.1171))
{
if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
{//yakuza
if(mammount > materijal[yakuzamat]) { SendClientMessage(playerid, COLOR_GREY, "Nema toliko materijala u sefu."); return 1; }
PlayerInfo[playerid][pMats] += mammount;
    materijal[yakuzamat] -= mammount;
format(string, sizeof(string), "Uzeli ste {FFFFFF}%d "COL_SVPLAVA"materijala!", mammount);
SendClientMessage(playerid, SVETLOPLAVA, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s uzima paket materijala iz sefa.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste clan mafije/bande!");
}
}
else if(PlayerToPoint(4.0, playerid,2497.4504,-1694.4545,1014.7421))
{
if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)
{//crips
if(mammount > materijal[cripsmat]) { SendClientMessage(playerid, COLOR_GREY, "Nema toliko materijala u sefu."); return 1; }
PlayerInfo[playerid][pMats] += mammount;
    materijal[cripsmat] -= mammount;
format(string, sizeof(string), "Uzeli ste {FFFFFF}%d "COL_SVPLAVA"materijala!", mammount);
SendClientMessage(playerid, SVETLOPLAVA, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s uzima paket materijala iz sefa.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste clan mafije/bande!");
}
}
else if(PlayerToPoint(4.0, playerid,458.7983,1412.6116,1084.3079))
{
if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
{//bloods
if(mammount > materijal[bloodsmat]) { SendClientMessage(playerid, COLOR_GREY, "Nema toliko materijala u sefu."); return 1; }
PlayerInfo[playerid][pMats] += mammount;
    materijal[bloodsmat] -= mammount;
format(string, sizeof(string), "Uzeli ste {FFFFFF}%d "COL_SVPLAVA"materijala!", mammount);
SendClientMessage(playerid, SVETLOPLAVA, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s uzima paket materijala iz sefa.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste clan mafije/bande!");
}
}
else if(PlayerToPoint(4.0, playerid,2555.1982421875,-1293.3720703125,1061.6137695313))
{
if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
{//bloods
if(mammount > materijal[rusmat]) { SendClientMessage(playerid, COLOR_GREY, "Nema toliko materijala u sefu."); return 1; }
PlayerInfo[playerid][pMats] += mammount;
    materijal[rusmat] -= mammount;
format(string, sizeof(string), "Uzeli ste {FFFFFF}%d "COL_SVPLAVA"materijala!", mammount);
SendClientMessage(playerid, SVETLOPLAVA, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s uzima paket materijala iz sefa.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste clan mafije/bande!");
}
}
else if(PlayerToPoint(4.0, playerid,2329.2927,-1180.6565,1027.9766))
{
if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
{ //bloods
if(mammount > materijal[lsurenmat]) { SendClientMessage(playerid, COLOR_GREY, "Nema toliko materijala u sefu."); return 1; }
PlayerInfo[playerid][pMats] += mammount;
    materijal[lsurenmat] -= mammount;
format(string, sizeof(string), "Uzeli ste {FFFFFF}%d "COL_SVPLAVA"materijala!", mammount);
SendClientMessage(playerid, SVETLOPLAVA, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s uzima paket materijala iz sefa.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste clan mafije/bande!");
}
}
else if(PlayerToPoint(4.0, playerid,301.9337,302.0425,1003.5391))
{
if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
{ //bloods
if(mammount > materijal[cracermat]) { SendClientMessage(playerid, COLOR_GREY, "Nema toliko materijala u sefu."); return 1; }
PlayerInfo[playerid][pMats] += mammount;
    materijal[cracermat] -= mammount;
format(string, sizeof(string), "Uzeli ste {FFFFFF}%d "COL_SVPLAVA"materijala!", mammount);
SendClientMessage(playerid, SVETLOPLAVA, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s uzima paket materijala iz sefa.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste clan mafije/bande!");
}
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste blizu sefa!");
}
SacuvajMaterijale();
    }
    return 1;
}
if(strcmp(cmd, "/putdrugs", true) == 0) // By Ellis
{
    if(IsPlayerConnected(playerid))
    {
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, COLOR_WHITE, "Koriscenje: /putdrugs [kolicina]");
            return 1;
        }
        new mammount;
        mammount = strval(tmp);
        if(mammount > PlayerInfo[playerid][pDrugs]) { SendClientMessage(playerid, COLOR_GREY, "   Nemate toliko droge kod sebe."); return 1; }
if(PlayerToPoint(4.0, playerid,1263.4899,-795.5519,1084.0078))
{
if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
{//lcn

PlayerInfo[playerid][pDrugs] -= mammount;
    droga[lcndrug] += mammount;
format(string, sizeof(string), "Spremili ste %d droge!", mammount);
SendClientMessage(playerid, COLOR_GREY, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s stavlja paket droge u sef.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste clan mafije/bande!");
}
}
else if(PlayerToPoint(4.0, playerid,956.8430,-54.1077,1001.1171))
{
if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
{//yakuza

PlayerInfo[playerid][pDrugs] -= mammount;
    droga[yakuzadrug] += mammount;
format(string, sizeof(string), "Spremili ste %d droge!", mammount);
SendClientMessage(playerid, COLOR_GREY, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s stavlja paket droge u sef.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste clan mafije/bande!");
}
}
else if(PlayerToPoint(4.0, playerid,2497.1645507813,-1696.5417480469,1014.2775878906))
{
if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)
{//crips

PlayerInfo[playerid][pDrugs] -= mammount;
    droga[cripsdrug] += mammount;
format(string, sizeof(string), "Spremili ste %d droge!", mammount);
SendClientMessage(playerid, COLOR_GREY, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s stavlja paket droge u sef.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste clan mafije/bande!");
}
}
else if(PlayerToPoint(4.0, playerid,2814.7437,-1166.8813,1025.5778))
{
if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
{//bloods

PlayerInfo[playerid][pDrugs] -= mammount;
    droga[bloodsdrug] += mammount;
format(string, sizeof(string), "Spremili ste %d droge!", mammount);
SendClientMessage(playerid, COLOR_GREY, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s stavlja paket droge u sef.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste clan mafije/bande!");
}
}
else if(PlayerToPoint(4.0, playerid,333.4601,1119.7482,1083.8903))
{
if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
{//ruskamafija

PlayerInfo[playerid][pDrugs] -= mammount;
    droga[rusdrug] += mammount;
format(string, sizeof(string), "Spremili ste %d droge!", mammount);
SendClientMessage(playerid, COLOR_GREY, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s stavlja paket droge u sef.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste clan mafije/bande!");
}
}
else if(PlayerToPoint(4.0, playerid,2329.2927,-1180.6565,1027.9766))
{
if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
{//surenosi

PlayerInfo[playerid][pDrugs] -= mammount;
    droga[lsurendrug] += mammount;
format(string, sizeof(string), "Spremili ste %d droge!", mammount);
SendClientMessage(playerid, COLOR_GREY, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s stavlja paket droge u sef.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste clan mafije/bande!");
}
}
else if(PlayerToPoint(4.0, playerid,301.9337,302.0425,1003.5391))
{
if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
{//surenosi

PlayerInfo[playerid][pDrugs] -= mammount;
    droga[cracerdrug] += mammount;
format(string, sizeof(string), "Spremili ste %d droge!", mammount);
SendClientMessage(playerid, COLOR_GREY, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s stavlja paket droge u sef.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste clan mafije/bande!");
}
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste blizu sefa!");
}
SacuvajDrogu();
    }
    return 1;
}
if(strcmp(cmd, "/takedrugs", true) == 0) // By Ellis
{
    if(IsPlayerConnected(playerid))
    {
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, COLOR_WHITE, "Koriscenje: /takedrugs [kolicina]");
            return 1;
        }
if(PlayerInfo[playerid][pRank] < 5)
{
SendClientMessage(playerid,COLOR_WHITE,"Morate biti minimum rank 5!");
return 1;
}
        new mammount;
        mammount = strval(tmp);
if(PlayerToPoint(4.0, playerid,1263.4899,-795.5519,1084.0078))
{
if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
{//lcn
if(mammount > droga[lcndrug]) { SendClientMessage(playerid, COLOR_GREY, "   Nema toliko droge u sefu."); return 1; }
PlayerInfo[playerid][pDrugs] += mammount;
    droga[lcndrug] -= mammount;
format(string, sizeof(string), "Uzeli ste %d droge!", mammount);
SendClientMessage(playerid, COLOR_GREY, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s uzima paket droge iz sefa.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste clan mafije/bande!");
}
}
else if(PlayerToPoint(4.0, playerid,956.8430,-54.1077,1001.1171))
{
if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
{//yakuza
if(mammount > droga[yakuzadrug]) { SendClientMessage(playerid, COLOR_GREY, "   Nema toliko droge u sefu."); return 1; }
PlayerInfo[playerid][pDrugs] += mammount;
    droga[yakuzadrug] -= mammount;
format(string, sizeof(string), "Uzeli ste %d droge!", mammount);
SendClientMessage(playerid, COLOR_GREY, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s uzima paket droge iz sefa.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste clan mafije/bande!");
}
}
else if(PlayerToPoint(4.0, playerid,2497.1645507813,-1696.5417480469,1014.2775878906))
{
if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)
{//crips
if(mammount > droga[cripsdrug]) { SendClientMessage(playerid, COLOR_GREY, "   Nema toliko droge u sefu."); return 1; }
PlayerInfo[playerid][pDrugs] += mammount;
    droga[cripsdrug] -= mammount;
format(string, sizeof(string), "Uzeli ste %d droge!", mammount);
SendClientMessage(playerid, COLOR_GREY, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s uzima paket droge iz sefa.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste clan mafije/bande!");
}
}
else if(PlayerToPoint(4.0, playerid,2814.7437,-1166.8813,1025.5778))
{
if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
{//bloods
if(mammount > droga[bloodsdrug]) { SendClientMessage(playerid, COLOR_GREY, "   Nema toliko droge u sefu."); return 1; }
PlayerInfo[playerid][pDrugs] += mammount;
    droga[bloodsdrug] -= mammount;
format(string, sizeof(string), "Uzeli ste %d droge!", mammount);
SendClientMessage(playerid, COLOR_GREY, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s uzima paket droge iz sefa.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste clan mafije/bande!");
}
}
else if(PlayerToPoint(4.0, playerid,333.4601,1119.7482,1083.8903))
{
if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
{//ruska mafija
if(mammount > droga[rusdrug]) { SendClientMessage(playerid, COLOR_GREY, "   Nema toliko droge u sefu."); return 1; }
PlayerInfo[playerid][pDrugs] += mammount;
    droga[rusdrug] -= mammount;
format(string, sizeof(string), "Uzeli ste %d droge!", mammount);
SendClientMessage(playerid, COLOR_GREY, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s uzima paket droge iz sefa.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste clan mafije/bande!");
}
}
else if(PlayerToPoint(4.0, playerid,2329.2927,-1180.6565,1027.9766))
{
if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
{//ruska mafija
if(mammount > droga[lsurendrug]) { SendClientMessage(playerid, COLOR_GREY, "Nema toliko droge u sefu."); return 1; }
PlayerInfo[playerid][pDrugs] += mammount;
    droga[lsurendrug] -= mammount;
format(string, sizeof(string), "Uzeli ste %d droge!", mammount);
SendClientMessage(playerid, COLOR_GREY, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s uzima paket droge iz sefa.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste clan mafije/bande!");
}
}
else if(PlayerToPoint(4.0, playerid,301.9337,302.0425,1003.5391))
{
if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
{//ruska mafija
if(mammount > droga[cracerdrug]) { SendClientMessage(playerid, COLOR_GREY, "Nema toliko droge u sefu."); return 1; }
PlayerInfo[playerid][pDrugs] += mammount;
    droga[cracerdrug] -= mammount;
format(string, sizeof(string), "Uzeli ste %d droge!", mammount);
SendClientMessage(playerid, COLOR_GREY, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s uzima paket droge iz sefa.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste clan mafije/bande!");
}
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste blizu sefa!");
}
SacuvajDrogu();
    }
    return 1;
}
if(strcmp(cmd, "/sefinfo", true) == 0)
{
if (PlayerInfo[playerid][pRank] >= 1)
    {
            UcitajMaterijale();
            UcitajDrogu();
if(PlayerToPoint(4.0, playerid,1263.4864501953,-796.32513427734,1084.681640625))
{
if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
{//lcn
    SendClientMessage(playerid, COLOR_WHITE, "Stanje u sefu:");
format(string, sizeof(string), "Materijali: {FFFFFF}%d", materijal[lcnmat]);
SendClientMessage(playerid, SVETLOPLAVA, string);
format(string, sizeof(string), "Droga: {FFFFFF}%d", droga[lcndrug]);
SendClientMessage(playerid, SVETLOPLAVA, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s otvara sef i provjerava sta ima unutra.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    }
}
else if(PlayerToPoint(4.0, playerid,956.8430,-54.1077,1001.1171))
{
if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
{//yakuza
    SendClientMessage(playerid, COLOR_WHITE, "Stanje u sefu:");
format(string, sizeof(string), "Materijali: {FFFFFF}%d", materijal[yakuzamat]);
SendClientMessage(playerid, SVETLOPLAVA, string);
format(string, sizeof(string), "Droga: {FFFFFF}%d", droga[yakuzadrug]);
SendClientMessage(playerid, SVETLOPLAVA, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s otvara sef i provjerava sta ima unutra.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else if(PlayerToPoint(4.0, playerid,2497.1645507813,-1696.5417480469,1014.2775878906))
{
if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)
{//crips
    SendClientMessage(playerid, COLOR_WHITE, "Stanje u sefu:");
format(string, sizeof(string), "Materijali: {FFFFFF}%d", materijal[cripsmat]);
SendClientMessage(playerid, SVETLOPLAVA, string);
format(string, sizeof(string), "Droga: {FFFFFF}%d", droga[cripsdrug]);
SendClientMessage(playerid, SVETLOPLAVA, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s otvara sef i provjerava sta ima unutra.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else if(PlayerToPoint(4.0, playerid,2814.7437,-1166.8813,1025.5778))
{
if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
{//bikeri
    SendClientMessage(playerid, COLOR_WHITE, "Stanje u sefu:");
format(string, sizeof(string), "Materijali: {FFFFFF}%d", materijal[bloodsmat]);
SendClientMessage(playerid, SVETLOPLAVA, string);
format(string, sizeof(string), "Droga: {FFFFFF}%d", droga[bloodsdrug]);
SendClientMessage(playerid, SVETLOPLAVA, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s otvara sef i provjerava sta ima unutra.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else if(PlayerToPoint(4.0, playerid,333.4601,1119.7482,1083.8903))
{
if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
{//tec
    SendClientMessage(playerid, COLOR_WHITE, "Stanje u sefu:");
format(string, sizeof(string), "Materijali: {FFFFFF}%d", materijal[rusmat]);
SendClientMessage(playerid, SVETLOPLAVA, string);
format(string, sizeof(string), "Droga: {FFFFFF}%d", droga[rusdrug]);
SendClientMessage(playerid, SVETLOPLAVA, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s otvara sef i provjerava sta ima unutra.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else if(PlayerToPoint(4.0, playerid, 2329.2927,-1180.6565,1027.9766))
{
if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13) //surenosi
{
    SendClientMessage(playerid, COLOR_WHITE, "Stanje u sefu:");
format(string, sizeof(string), "Materijali: {FFFFFF}%d", materijal[lsurenmat]);
SendClientMessage(playerid, SVETLOPLAVA, string);
format(string, sizeof(string), "Droga: {FFFFFF}%d", droga[lsurendrug]);
SendClientMessage(playerid, SVETLOPLAVA, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s otvara sef i provjerava sta ima unutra.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else if(PlayerToPoint(4.0, playerid, 301.9337,302.0425,1003.5391))
{
if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14) //cr
{
    SendClientMessage(playerid, COLOR_WHITE, "Stanje u sefu:");
format(string, sizeof(string), "Materijali: {FFFFFF}%d", materijal[cracermat]);
SendClientMessage(playerid, SVETLOPLAVA, string);
format(string, sizeof(string), "Droga: {FFFFFF}%d", droga[cracerdrug]);
SendClientMessage(playerid, SVETLOPLAVA, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s otvara sef i provjerava sta ima unutra.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste ispred sefa ili niste lider mafije/bande!");
}
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Morate biti minimum rank 5!");
}
return 1;
}
if(strcmp(cmd, "/asefinfo", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 3)
    {
            UcitajMaterijale();
            UcitajDrogu();
            new asefinfo[512];
new coordstring1[128];
new coordstring2[128];
new coordstring3[128];
new coordstring4[128];
new coordstring5[128];
new coordstring6[128];
new coordstring7[128];
format(coordstring1, sizeof(coordstring1), "{00C0FF}L.C.N: Mat's: {FFFFFF}%d "COL_SVPLAVA"Droga: {FFFFFF}%d\n", materijal[lcnmat],droga[lcndrug]);
format(coordstring2, sizeof(coordstring2), "{00C0FF}Yakuza: Mat's: {FFFFFF}%d "COL_SVPLAVA"Droga: {FFFFFF}%d\n", materijal[yakuzamat],droga[yakuzadrug]);
format(coordstring3, sizeof(coordstring3), "{00C0FF}Vagos:  Mat's: {FFFFFF}%d "COL_SVPLAVA"Droga: {FFFFFF}%d\n", materijal[bloodsmat],droga[bloodsdrug]);
format(coordstring4, sizeof(coordstring4), "{00C0FF}Grove St.:  Mat's: {FFFFFF}%d "COL_SVPLAVA"Droga: {FFFFFF}%d\n", materijal[cripsmat],droga[cripsdrug]);
format(coordstring5, sizeof(coordstring5), "{00C0FF}Ballas:  Mat's: {FFFFFF}%d "COL_SVPLAVA"Droga: {FFFFFF}%d\n", materijal[rusmat],droga[rusdrug]);
format(coordstring6, sizeof(coordstring6), "{00C0FF}L.Surenos:  Mat's: {FFFFFF}%d "COL_SVPLAVA"Droga: {FFFFFF}%d\n", materijal[lsurenmat],droga[lsurendrug]);
format(coordstring7, sizeof(coordstring7), "{00C0FF}C.Racer's:  Mat's: {FFFFFF}%d "COL_SVPLAVA"Droga: {FFFFFF}%d\n", materijal[cracermat],droga[cracerdrug]);
format(asefinfo, 512," %s%s%s%s%s%s",coordstring1,coordstring2,coordstring3,coordstring4,coordstring5,coordstring6);
ShowPlayerDialog(playerid, 999, DIALOG_STYLE_MSGBOX,"{00C0FF}- Provjera stanja u sefu -",asefinfo,"< Uredu >","");
}
return 1;
}
if(strcmp(cmd, "/cashboxstart", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 2)
    {
if(mode == 1 || mode == 2)
{
    if(IsGameStarted != 1)
    {
cashboxstarttimer = SetTimer("StartNewCashboxGame", 5000, 0);
SendClientMessageToAll(COLOR_WHITE,"Lov na aktovku ce poceti za 5 sekundi!");
IsGameStarted = 1;
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Igra je vec pocela!");
}
}
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste ovlasteni da koristite tu komandu!");
}
return 1;
}
if(strcmp(cmd, "/cashboxstop", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 2)
    {
    if(IsGameStarted == 1)
{
if(IsTextdrawCreated == 1)
{
TextDrawHideForAll(ValueText);
TextDrawDestroy(ValueText);
IsTextdrawCreated = 0;
}
DestroyPickup(CashboxPickup);
KillTimer(cashboxstarttimer);
KillTimer(DropValueTimer);
IsGameStarted = 0;
CashboxPickup = CreatePickup(1210, 3, 0, 0, 1000);
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"Igra jos nije pocela!");
}
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste ovlasteni da koristite tu komandu!");
}
return 1;
}
if(strcmp(cmdtext, "/cashboxhint", true)==0 || strcmp(cmdtext, "/cbh", true)==0)
{
if(PlayerCuffed[playerid] == 0 && PlayerTied[playerid] == 0 &&  PlayerFreezed[playerid] == 0)
{
if(IsGameStarted != 1)
{
    return 1;
}
    if(mode == 2)
    {
    new randX = -100+random(200);
new randY = -100+random(200);
SetPlayerCameraPos(playerid, CashboxX+randX, CashboxY+randY, (CashboxZ+60));
SetPlayerCameraLookAt(playerid, CashboxX, CashboxY, CashboxZ);
    TogglePlayerControllable(playerid, 0);
    SetTimerEx("ResetCam", 4000, 0, "i", playerid);
}
}
return 1;
}
if(strcmp(cmd, "/gotolist", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 2)
    {
SendClientMessage(playerid, COLOR_GRAD2, "Lokacije: gotols, gotosf, gotolv, gotobolnica, gotoburg");
SendClientMessage(playerid, COLOR_GRAD2, "Lokacije: gotobank, gotospawn, gotostunt");
SendClientMessage(playerid, COLOR_GRAD2, "Lokacije: gotocross, gotocross1, gotohell, gotohell1");
SendClientMessage(playerid, COLOR_GRAD2, "Lokacije: gotorace, gotomonster, gotosurvivor");
}
        else
        {
SendClientMessage(playerid, COLOR_WHITE, "   Niste ovlasteni da koristite tu komandu !");
        }
}
if(strcmp(cmd, "/vozila", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGameSage] >= 2)
    {
        ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Vozila za Trke", "Cross Motori\nAero Race Motori\nAero Race Auta\nBeach Buggy\nMonster Truck\nDestruction Derby\nStunt Cross\nSurvivor Motori\nNovi Race", "Stvori", "Odustani");
        return 1;
        }
        else
        {
SendClientMessage(playerid, COLOR_WHITE, "Niste ovlasteni da koristite tu komandu !");
        }
    }
    if(strcmp(cmd, "/buy", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if (PlayerToPoint(5.0, playerid,-29.3113,-184.1468,1003.5469)) //kiosk
{
if(BizzInfo[11][bProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Nema Produkata", 5000, 1);
return 1;
}
ShowPlayerDialog(playerid, 203, DIALOG_STYLE_LIST, "{00C0FF}SuperMarket", "Mobitel 150$\nSrecka $500\nImenik $100\nKockica $10\nUpaljac $5\nCigare $30\nKondom $1\nKamera $50\nMaska $500\nSat $100\nOprema za ribolov $150\nKonop $10\nSprej $50\nPovez $10", "U redu", "Odustani");
}
else if (PlayerToPoint(5.0, playerid,2.1480,-28.0041,1003.5494)) //kiosk br 2
{
if(BizzInfo[12][bProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Nema Produkata", 5000, 1);
return 1;
}
ShowPlayerDialog(playerid, 204, DIALOG_STYLE_LIST, "{00C0FF}SuperMarket", "Mobitel 150$\nSrecka $500\nImenik $100\nKockica $10\nUpaljac $5\nCigare $30\nKondom $1\nKamera $50\nMaska $500\nSat $100\nOprema za ribolov $150\nKonop $10\nSprej $50\nPovez $10", "U redu", "Odustani");
}
else if (PlayerToPoint(5.0, playerid,-28.1822,-89.2201,1003.5469)) //kiosk br 3
{
if(BizzInfo[13][bProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Nema Produkata", 5000, 1);
return 1;
}
ShowPlayerDialog(playerid, 205, DIALOG_STYLE_LIST, "{00C0FF}SuperMarket", "Mobitel 150$\nSrecka $500\nImenik $100\nKockica $10\nUpaljac $5\nCigare $30\nKondom $1\nKamera $50\nMaska $500\nSat $100\nOprema za ribolov $150\nKonop $10\nSprej $50\nPovez $10", "U redu", "Odustani");
}
else if (PlayerToPoint(5.0, playerid,-22.2104,-138.0743,1003.5469)) //kiosk br 4
{
if(BizzInfo[14][bProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Nema Produkata", 5000, 1);
return 1;
}
ShowPlayerDialog(playerid, 206, DIALOG_STYLE_LIST, "{00C0FF}SuperMarket", "Mobitel 150$\nSrecka $500\nImenik $100\nKockica $10\nUpaljac $5\nCigare $30\nKondom $1\nKamera $50\nMaska $500\nSat $100\nOprema za ribolov $150\nKonop $10\nSprej $50\nPovez $10", "U redu", "Odustani");
}
else if (PlayerToPoint(5.0, playerid,-30.8499,-28.5352,1003.5573)) //kiosk br 5
{
if(BizzInfo[15][bProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Nema Produkata", 5000, 1);
return 1;
}
ShowPlayerDialog(playerid, 207, DIALOG_STYLE_LIST, "{00C0FF}SuperMarket", "Mobitel 150$\nSrecka $500\nImenik $100\nKockica $10\nUpaljac $5\nCigare $30\nKondom $1\nKamera $50\nMaska $500\nSat $100\nOprema za ribolov $150\nKonop $10\nSprej $50\nPovez $10", "U redu", "Odustani");
}
else if (PlayerToPoint(5.0, playerid,-23.6264,-54.9116,1003.5469)) //kiosk br 6
{
if(BizzInfo[16][bProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Nema Produkata", 5000, 1);
return 1;
}
ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "{00C0FF}SuperMarket", "Mobitel 150$\nSrecka $500\nImenik $100\nKockica $10\nUpaljac $5\nCigare $30\nKondom $1\nKamera $50\nMaska $500\nSat $100\nOprema za ribolov $150\nKonop $10\nSprej $50\nPovez $10", "U redu", "Odustani");
}
else
            {
        SendClientMessage(playerid, WHITE, "("COL_RED"Greska{FFFFFF}!) Ne nalazite se u "COL_RED"SuperMarketu!");
    return 1;
            }
}
return 1;
}
    if(strcmp(cmd, "/kiosk", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if (PlayerToPoint(4.0, playerid,1531.0088,-1738.5283,13.5469)) //kiosk
{
if(SBizzInfo[16][sbProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Nema Produkata", 5000, 1);
return 1;
}
ShowPlayerDialog(playerid, 69, DIALOG_STYLE_LIST, "{00C0FF}SuperMarket", "Mobitel 150$\nSrecka $500\nImenik $100\nKockica $10\nUpaljac $5\nCigare $30\nKondom $1\nKamera $50\nMaska $500\nSat $100\nOprema za ribolov $150\nKonop $10\nSprej $50\nPovez $10", "U redu", "Odustani");
}
else if (PlayerToPoint(4.0, playerid,1484.0363,-1029.4645,23.6563)) //kiosk br 2
{
if(SBizzInfo[17][sbProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Nema Produkata", 5000, 1);
return 1;
}
ShowPlayerDialog(playerid, 79, DIALOG_STYLE_LIST, "{00C0FF}SuperMarket", "Mobitel 150$\nSrecka $500\nImenik $100\nKockica $10\nUpaljac $5\nCigare $30\nKondom $1\nKamera $50\nMaska $500\nSat $100\nOprema za ribolov $150\nKonop $10\nSprej $50\nPovez $10", "U redu", "Odustani");
}
else if (PlayerToPoint(4.0, playerid,1147.3217,-935.4334,43.1540)) //kiosk br 3
{
if(SBizzInfo[18][sbProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Nema Produkata", 5000, 1);
return 1;
}
ShowPlayerDialog(playerid, 89, DIALOG_STYLE_LIST, "{00C0FF}SuperMarket", "Mobitel 150$\nSrecka $500\nImenik $100\nKockica $10\nUpaljac $5\nCigare $30\nKondom $1\nKamera $50\nMaska $500\nSat $100\nOprema za ribolov $150\nKonop $10\nSprej $50\nPovez $10", "U redu", "Odustani");
}
else if (PlayerToPoint(4.0, playerid,1230.8046,-1276.6183,13.3828)) //kiosk br 4
{
if(SBizzInfo[19][sbProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Nema Produkata", 5000, 1);
return 1;
}
ShowPlayerDialog(playerid, 99, DIALOG_STYLE_LIST, "{00C0FF}SuperMarket", "Mobitel 150$\nSrecka $500\nImenik $100\nKockica $10\nUpaljac $5\nCigare $30\nKondom $1\nKamera $50\nMaska $500\nSat $100\nOprema za ribolov $150\nKonop $10\nSprej $50\nPovez $10", "U redu", "Odustani");
}
else if (PlayerToPoint(4.0, playerid,1827.5243,-1891.1887,13.5174)) //kiosk br 5
{
if(SBizzInfo[20][sbProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Nema Produkata", 5000, 1);
return 1;
}
ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "{00C0FF}SuperMarket", "Mobitel 150$\nSrecka $500\nImenik $100\nKockica $10\nUpaljac $5\nCigare $30\nKondom $1\nKamera $50\nMaska $500\nSat $100\nOprema za ribolov $150\nKonop $10\nSprej $50\nPovez $10", "U redu", "Odustani");
}
else if (PlayerToPoint(4.0, playerid,2012.1190,-1455.0481,13.5547)) //kiosk br 6
{
if(SBizzInfo[9][sbProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Nema Produkata", 5000, 1);
return 1;
}
ShowPlayerDialog(playerid, 210, DIALOG_STYLE_LIST, "{00C0FF}SuperMarket", "Mobitel 150$\nSrecka $500\nImenik $100\nKockica $10\nUpaljac $5\nCigare $30\nKondom $1\nKamera $50\nMaska $500\nSat $100\nOprema za ribolov $150\nKonop $10\nSprej $50\nPovez $10", "U redu", "Odustani");
}
else
            {
        SendClientMessage(playerid, WHITE, "("COL_RED"Greska{FFFFFF}!) Ne nalazite se kod "COL_RED"Kioska!");
    return 1;
            }
}
return 1;
}
   if (strcmp("/neon", cmdtext, true, 10) == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
  if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
{
SendClientMessage(playerid, WHITE, "("COL_RED"Greska{FFFFFF}!) Niste vozac!");
return 1;
}
if(PlayerToPoint(5.0,playerid,1034.4844,-1103.4556,23.8281))
{
ShowPlayerDialog(playerid, NEON, DIALOG_STYLE_LIST, "[Neonke]","Plava\nZelena\nZuta\nBijela\nRoza\nBrisanje Neonki","Postavi","Odustani");
}
else { SendClientMessage(playerid, WHITE, "("COL_RED"Greska{FFFFFF}!) Niste kod Mehanicara!"); }
}
else
{
    SendClientMessage(playerid, WHITE, "("COL_RED"Greska{FFFFFF}!) Moras biti u vozilu!");
}
return 1;
}
if(strcmp(cmd, "/destroyspawncars", true) == 0 || strcmp(cmd, "/dsc", true) == 0) // by Ellis
{
    if(IsPlayerConnected(playerid))
    {
        if(PlayerInfo[playerid][pAdmin] < 2)
{
    SendClientMessage(playerid, COLOR_GRAD1, "   Niste ovlasteni da koristite tu komandu!");
    return 1;
}
for(new car = 551; car < sizeof(CreatedCars); car++)
{
DestroyVehicle(car);
}
sftrackveh = 0;
mchilladveh = 0;
buggyveh = 0;
monsterveh = 0;
survivorveh = 0;
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "G-Shock %s je unistio sva stvorena vozila .", sendername);
SendClientMessage(playerid,COLOR_WHITE," Unistili ste sva stvorena vozila ");
BroadCast(COLOR_WHITE,string);
}
return 1;
}
//HEAL ALL
    if (strcmp("/healall", cmdtext, true, 10) == 0)
    {
if(IsPlayerConnected(playerid))
{
        if (PlayerInfo[playerid][pAdmin] >= 1337)
        {
foreach (Player, i)
{
SetPlayerHealth(i,100)
}
SendClientMessage(playerid, WHITE, "("COL_ORANGE"Obavijest{FFFFFF}!) Izlijecio si sve igrace!");
}
  else
  {
SendClientMessage(playerid, WHITE, "("COL_RED"G-Shock{FFFFFF}!) Niste ovlasteni da koristite tu komandu!");
}
}
return 1;
}
//GIVEMONEY ALL
    if (strcmp("/agivemoneyall", cmdtext, true, 10) == 0)
    {
if(IsPlayerConnected(playerid))
{
        if (PlayerInfo[playerid][pAdmin] >= 1338)
        {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /agivemoneyall [novac]");
return 1;
}
        new money;
// tmp = strtok(cmdtext, idx);
money = strval(tmp);
                foreach (Player, i)
{
GivePlayerCash(i,money);
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Dali ste svim igracima %d $",money);
SendClientMessage(playerid,COLOR_WHITE,string);
format(string, sizeof(string), "("COL_RED"G-Shock{FFFFFF}!) "COL_RED"%s "COL_WHITE"je dao "COL_RED"%d$ "COL_WHITE"svim igracima",sendername,money);
ABroadCast(WHITE,string,1);
}
  else
  {
SendClientMessage(playerid, COLOR_WHITE, "Niste ovlasteni da koristite tu komandu !");
}
}
return 1;
}

if (strcmp("/dres1", cmdtext, true, 10) == 0)
{
if(PlayerToPoint(1.5, playerid, 2799.3735,-2015.9606,13.5546))
{
SetPlayerSkin(playerid, 176)
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string,sizeof(string), "* %s oblaci dres 1.", sendername);
SendClientMessage(playerid, COLOR_WHITE, "   Obukli ste Dres 1 !");
}
}
else if (strcmp("/dres2", cmdtext, true, 10) == 0)
{
if(PlayerToPoint(1.5, playerid, 2799.9907,-2022.8815,13.5546))
{
SetPlayerSkin(playerid, 180)
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string,sizeof(string), "* %s oblaci dres 2.", sendername);
SendClientMessage(playerid, COLOR_WHITE, "   Obukli ste Dres 2 !");
}
}
dcmd_warn(playerid,params[]) {
    if(PlayerInfo[playerid][pAdmin] >= 1) {
    new tmp[256], tmp2[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index);
    if(!strlen(tmp) || !strlen(tmp2)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /warn [playerid] [reason]");
    new warned = strval(tmp), str[128];
    new sendername[MAX_PLAYER_NAME];
    new giveplayer[MAX_PLAYER_NAME];
// if(PlayerInfo[warned][Level] == ServerInfo[MaxAdminLevel] && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) return SendClientMessage(playerid,red,"ERROR: You cannot use this command on this admin");
if(IsPlayerConnected(warned) && warned != INVALID_PLAYER_ID) {
    if(warned != playerid) {
    ABroadCast(warned,"WARN",1);
PlayerInfo[warned][pWarns]++;
if( PlayerInfo[warned][pWarns] == MAX_WARNINGS) {
GetPlayerName(warned, sendername, sizeof(sendername));
format(str, sizeof (str), "*** \"%s\" je banovan zbog opomena \"%s\".  (Razlog: %s) (Warn: %d/5)***",sendername, params[1+strlen(tmp)], PlayerInfo[warned][pWarns]);
SendClientMessageToAll(COLOR_RED, str);
BanLog(str);
Ban(warned);
return PlayerInfo[warned][pWarns] = 0;
} else {
GetPlayerName(warned, sendername, sizeof(sendername));
GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
format(str, sizeof (str), "***Admin \"%s\" je dao \"%s\" a warn.  (Reason: %s) (Warning: %d/5)***",giveplayer,sendername, params[1+strlen(tmp)], PlayerInfo[warned][pWarns]);
return SendClientMessageToAll(COLOR_YELLOW, str);
}
} else return SendClientMessage(playerid, COLOR_RED, "G-Shock: Ne mozete dati sebi warn");
} else return SendClientMessage(playerid, COLOR_RED, "G-Shock: Igrac nije konektovan");
} else return SendClientMessage(playerid,COLOR_RED,"G-Shock: Niste dovoljan Admin level da koristite tu komandu");
}
Poslednja Izmena: Januar 14, 2012, 22:20:51 POSLE PODNE od [GS]Impulse!

DCMD komande ti ne idu u OnPlayerCommandText,vec izvan callbackova i stockova...

public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/drink", true))
{
if (PlayerToPoint(5.0, playerid,1761.0394,-1355.6870,15.7575) || PlayerToPoint(5.0, playerid,1919.7634,-1769.6547,17.9766)|| PlayerToPoint(5.0, playerid,1218.4104,-1425.2007,13.3415))
{
ShowPlayerDialog(playerid, 9, DIALOG_STYLE_LIST, "Donator Cafe Bar", "\nVoda (1$)\nCoca-Cola (2$)\nFanta (2$)\nPivo (4$)\nVino (15$)", "Kupi", "Odustani");
return 1;
        }
        else
{
    SendClientMessage(playerid, WHITE, "("COL_RED"Greska{FFFFFF}!) Niste za sankom!");
}
return 1;
if(strcmp(cmd, "/takemats", true) == 0) // By Ellis
{
    if(IsPlayerConnected(playerid))
    {
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, COLOR_WHITE, "Koriscenje: /takemats [kolicina]");
            return 1;
        }
if(PlayerInfo[playerid][pRank] < 5)
{
SendClientMessage(playerid,COLOR_WHITE,"Morate biti minimum rank 5!");
return 1;
}
        new mammount;
        mammount = strval(tmp);
if(PlayerToPoint(4.0, playerid,1263.4899,-795.5519,1084.0078))
{
if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
{//lcn
if(mammount > materijal[lcnmat]) { SendClientMessage(playerid, COLOR_GREY, "Nema toliko materijala u sefu."); return 1; }
PlayerInfo[playerid][pMats] += mammount;
    materijal[lcnmat] -= mammount;
format(string, sizeof(string), "Uzeli ste {FFFFFF}%d "COL_SVPLAVA"materijala!", mammount);
SendClientMessage(playerid, SVETLOPLAVA, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s uzima paket materijala iz sefa.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste clan mafije/bande!");
}
}
else if(PlayerToPoint(4.0, playerid,956.8430,-54.1077,1001.1171))
{
if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
{//yakuza
if(mammount > materijal[yakuzamat]) { SendClientMessage(playerid, COLOR_GREY, "Nema toliko materijala u sefu."); return 1; }
PlayerInfo[playerid][pMats] += mammount;
    materijal[yakuzamat] -= mammount;
format(string, sizeof(string), "Uzeli ste {FFFFFF}%d "COL_SVPLAVA"materijala!", mammount);
SendClientMessage(playerid, SVETLOPLAVA, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s uzima paket materijala iz sefa.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste clan mafije/bande!");
}
}
else if(PlayerToPoint(4.0, playerid,2497.4504,-1694.4545,1014.7421))
{
if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)
{//crips
if(mammount > materijal[cripsmat]) { SendClientMessage(playerid, COLOR_GREY, "Nema toliko materijala u sefu."); return 1; }
PlayerInfo[playerid][pMats] += mammount;
    materijal[cripsmat] -= mammount;
format(string, sizeof(string), "Uzeli ste {FFFFFF}%d "COL_SVPLAVA"materijala!", mammount);
SendClientMessage(playerid, SVETLOPLAVA, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s uzima paket materijala iz sefa.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste clan mafije/bande!");
}
}
else if(PlayerToPoint(4.0, playerid,458.7983,1412.6116,1084.3079))
{
if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
{//bloods
if(mammount > materijal[bloodsmat]) { SendClientMessage(playerid, COLOR_GREY, "Nema toliko materijala u sefu."); return 1; }
PlayerInfo[playerid][pMats] += mammount;
    materijal[bloodsmat] -= mammount;
format(string, sizeof(string), "Uzeli ste {FFFFFF}%d "COL_SVPLAVA"materijala!", mammount);
SendClientMessage(playerid, SVETLOPLAVA, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s uzima paket materijala iz sefa.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste clan mafije/bande!");
}
}
else if(PlayerToPoint(4.0, playerid,2555.1982421875,-1293.3720703125,1061.6137695313))
{
if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
{//bloods
if(mammount > materijal[rusmat]) { SendClientMessage(playerid, COLOR_GREY, "Nema toliko materijala u sefu."); return 1; }
PlayerInfo[playerid][pMats] += mammount;
    materijal[rusmat] -= mammount;
format(string, sizeof(string), "Uzeli ste {FFFFFF}%d "COL_SVPLAVA"materijala!", mammount);
SendClientMessage(playerid, SVETLOPLAVA, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s uzima paket materijala iz sefa.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste clan mafije/bande!");
}
}
else if(PlayerToPoint(4.0, playerid,2329.2927,-1180.6565,1027.9766))
{
if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
{ //bloods
if(mammount > materijal[lsurenmat]) { SendClientMessage(playerid, COLOR_GREY, "Nema toliko materijala u sefu."); return 1; }
PlayerInfo[playerid][pMats] += mammount;
    materijal[lsurenmat] -= mammount;
format(string, sizeof(string), "Uzeli ste {FFFFFF}%d "COL_SVPLAVA"materijala!", mammount);
SendClientMessage(playerid, SVETLOPLAVA, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s uzima paket materijala iz sefa.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste clan mafije/bande!");
}
}
else if(PlayerToPoint(4.0, playerid,301.9337,302.0425,1003.5391))
{
if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
{ //bloods
if(mammount > materijal[cracermat]) { SendClientMessage(playerid, COLOR_GREY, "Nema toliko materijala u sefu."); return 1; }
PlayerInfo[playerid][pMats] += mammount;
    materijal[cracermat] -= mammount;
format(string, sizeof(string), "Uzeli ste {FFFFFF}%d "COL_SVPLAVA"materijala!", mammount);
SendClientMessage(playerid, SVETLOPLAVA, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s uzima paket materijala iz sefa.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste clan mafije/bande!");
}
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste blizu sefa!");
}
SacuvajMaterijale();
    }
    return 1;
}
if(strcmp(cmd, "/putdrugs", true) == 0) // By Ellis
{
    if(IsPlayerConnected(playerid))
    {
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, COLOR_WHITE, "Koriscenje: /putdrugs [kolicina]");
            return 1;
        }
        new mammount;
        mammount = strval(tmp);
        if(mammount > PlayerInfo[playerid][pDrugs]) { SendClientMessage(playerid, COLOR_GREY, "   Nemate toliko droge kod sebe."); return 1; }
if(PlayerToPoint(4.0, playerid,1263.4899,-795.5519,1084.0078))
{
if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
{//lcn

PlayerInfo[playerid][pDrugs] -= mammount;
    droga[lcndrug] += mammount;
format(string, sizeof(string), "Spremili ste %d droge!", mammount);
SendClientMessage(playerid, COLOR_GREY, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s stavlja paket droge u sef.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste clan mafije/bande!");
}
}
else if(PlayerToPoint(4.0, playerid,956.8430,-54.1077,1001.1171))
{
if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
{//yakuza

PlayerInfo[playerid][pDrugs] -= mammount;
    droga[yakuzadrug] += mammount;
format(string, sizeof(string), "Spremili ste %d droge!", mammount);
SendClientMessage(playerid, COLOR_GREY, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s stavlja paket droge u sef.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste clan mafije/bande!");
}
}
else if(PlayerToPoint(4.0, playerid,2497.1645507813,-1696.5417480469,1014.2775878906))
{
if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)
{//crips

PlayerInfo[playerid][pDrugs] -= mammount;
    droga[cripsdrug] += mammount;
format(string, sizeof(string), "Spremili ste %d droge!", mammount);
SendClientMessage(playerid, COLOR_GREY, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s stavlja paket droge u sef.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste clan mafije/bande!");
}
}
else if(PlayerToPoint(4.0, playerid,2814.7437,-1166.8813,1025.5778))
{
if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
{//bloods

PlayerInfo[playerid][pDrugs] -= mammount;
    droga[bloodsdrug] += mammount;
format(string, sizeof(string), "Spremili ste %d droge!", mammount);
SendClientMessage(playerid, COLOR_GREY, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s stavlja paket droge u sef.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste clan mafije/bande!");
}
}
else if(PlayerToPoint(4.0, playerid,333.4601,1119.7482,1083.8903))
{
if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
{//ruskamafija

PlayerInfo[playerid][pDrugs] -= mammount;
    droga[rusdrug] += mammount;
format(string, sizeof(string), "Spremili ste %d droge!", mammount);
SendClientMessage(playerid, COLOR_GREY, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s stavlja paket droge u sef.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste clan mafije/bande!");
}
}
else if(PlayerToPoint(4.0, playerid,2329.2927,-1180.6565,1027.9766))
{
if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
{//surenosi

PlayerInfo[playerid][pDrugs] -= mammount;
    droga[lsurendrug] += mammount;
format(string, sizeof(string), "Spremili ste %d droge!", mammount);
SendClientMessage(playerid, COLOR_GREY, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s stavlja paket droge u sef.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste clan mafije/bande!");
}
}
else if(PlayerToPoint(4.0, playerid,301.9337,302.0425,1003.5391))
{
if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
{//surenosi

PlayerInfo[playerid][pDrugs] -= mammount;
    droga[cracerdrug] += mammount;
format(string, sizeof(string), "Spremili ste %d droge!", mammount);
SendClientMessage(playerid, COLOR_GREY, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s stavlja paket droge u sef.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste clan mafije/bande!");
}
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste blizu sefa!");
}
SacuvajDrogu();
    }
    return 1;
}
if(strcmp(cmd, "/takedrugs", true) == 0) // By Ellis
{
    if(IsPlayerConnected(playerid))
    {
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, COLOR_WHITE, "Koriscenje: /takedrugs [kolicina]");
            return 1;
        }
if(PlayerInfo[playerid][pRank] < 5)
{
SendClientMessage(playerid,COLOR_WHITE,"Morate biti minimum rank 5!");
return 1;
}
        new mammount;
        mammount = strval(tmp);
if(PlayerToPoint(4.0, playerid,1263.4899,-795.5519,1084.0078))
{
if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
{//lcn
if(mammount > droga[lcndrug]) { SendClientMessage(playerid, COLOR_GREY, "   Nema toliko droge u sefu."); return 1; }
PlayerInfo[playerid][pDrugs] += mammount;
    droga[lcndrug] -= mammount;
format(string, sizeof(string), "Uzeli ste %d droge!", mammount);
SendClientMessage(playerid, COLOR_GREY, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s uzima paket droge iz sefa.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste clan mafije/bande!");
}
}
else if(PlayerToPoint(4.0, playerid,956.8430,-54.1077,1001.1171))
{
if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
{//yakuza
if(mammount > droga[yakuzadrug]) { SendClientMessage(playerid, COLOR_GREY, "   Nema toliko droge u sefu."); return 1; }
PlayerInfo[playerid][pDrugs] += mammount;
    droga[yakuzadrug] -= mammount;
format(string, sizeof(string), "Uzeli ste %d droge!", mammount);
SendClientMessage(playerid, COLOR_GREY, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s uzima paket droge iz sefa.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste clan mafije/bande!");
}
}
else if(PlayerToPoint(4.0, playerid,2497.1645507813,-1696.5417480469,1014.2775878906))
{
if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)
{//crips
if(mammount > droga[cripsdrug]) { SendClientMessage(playerid, COLOR_GREY, "   Nema toliko droge u sefu."); return 1; }
PlayerInfo[playerid][pDrugs] += mammount;
    droga[cripsdrug] -= mammount;
format(string, sizeof(string), "Uzeli ste %d droge!", mammount);
SendClientMessage(playerid, COLOR_GREY, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s uzima paket droge iz sefa.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste clan mafije/bande!");
}
}
else if(PlayerToPoint(4.0, playerid,2814.7437,-1166.8813,1025.5778))
{
if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
{//bloods
if(mammount > droga[bloodsdrug]) { SendClientMessage(playerid, COLOR_GREY, "   Nema toliko droge u sefu."); return 1; }
PlayerInfo[playerid][pDrugs] += mammount;
    droga[bloodsdrug] -= mammount;
format(string, sizeof(string), "Uzeli ste %d droge!", mammount);
SendClientMessage(playerid, COLOR_GREY, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s uzima paket droge iz sefa.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste clan mafije/bande!");
}
}
else if(PlayerToPoint(4.0, playerid,333.4601,1119.7482,1083.8903))
{
if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
{//ruska mafija
if(mammount > droga[rusdrug]) { SendClientMessage(playerid, COLOR_GREY, "   Nema toliko droge u sefu."); return 1; }
PlayerInfo[playerid][pDrugs] += mammount;
    droga[rusdrug] -= mammount;
format(string, sizeof(string), "Uzeli ste %d droge!", mammount);
SendClientMessage(playerid, COLOR_GREY, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s uzima paket droge iz sefa.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste clan mafije/bande!");
}
}
else if(PlayerToPoint(4.0, playerid,2329.2927,-1180.6565,1027.9766))
{
if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
{//ruska mafija
if(mammount > droga[lsurendrug]) { SendClientMessage(playerid, COLOR_GREY, "Nema toliko droge u sefu."); return 1; }
PlayerInfo[playerid][pDrugs] += mammount;
    droga[lsurendrug] -= mammount;
format(string, sizeof(string), "Uzeli ste %d droge!", mammount);
SendClientMessage(playerid, COLOR_GREY, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s uzima paket droge iz sefa.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste clan mafije/bande!");
}
}
else if(PlayerToPoint(4.0, playerid,301.9337,302.0425,1003.5391))
{
if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
{//ruska mafija
if(mammount > droga[cracerdrug]) { SendClientMessage(playerid, COLOR_GREY, "Nema toliko droge u sefu."); return 1; }
PlayerInfo[playerid][pDrugs] += mammount;
    droga[cracerdrug] -= mammount;
format(string, sizeof(string), "Uzeli ste %d droge!", mammount);
SendClientMessage(playerid, COLOR_GREY, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s uzima paket droge iz sefa.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste clan mafije/bande!");
}
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste blizu sefa!");
}
SacuvajDrogu();
    }
    return 1;
}
if(strcmp(cmd, "/sefinfo", true) == 0)
{
if (PlayerInfo[playerid][pRank] >= 1)
    {
            UcitajMaterijale();
            UcitajDrogu();
if(PlayerToPoint(4.0, playerid,1263.4864501953,-796.32513427734,1084.681640625))
{
if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
{//lcn
    SendClientMessage(playerid, COLOR_WHITE, "Stanje u sefu:");
format(string, sizeof(string), "Materijali: {FFFFFF}%d", materijal[lcnmat]);
SendClientMessage(playerid, SVETLOPLAVA, string);
format(string, sizeof(string), "Droga: {FFFFFF}%d", droga[lcndrug]);
SendClientMessage(playerid, SVETLOPLAVA, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s otvara sef i provjerava sta ima unutra.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    }
}
else if(PlayerToPoint(4.0, playerid,956.8430,-54.1077,1001.1171))
{
if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
{//yakuza
    SendClientMessage(playerid, COLOR_WHITE, "Stanje u sefu:");
format(string, sizeof(string), "Materijali: {FFFFFF}%d", materijal[yakuzamat]);
SendClientMessage(playerid, SVETLOPLAVA, string);
format(string, sizeof(string), "Droga: {FFFFFF}%d", droga[yakuzadrug]);
SendClientMessage(playerid, SVETLOPLAVA, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s otvara sef i provjerava sta ima unutra.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else if(PlayerToPoint(4.0, playerid,2497.1645507813,-1696.5417480469,1014.2775878906))
{
if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)
{//crips
    SendClientMessage(playerid, COLOR_WHITE, "Stanje u sefu:");
format(string, sizeof(string), "Materijali: {FFFFFF}%d", materijal[cripsmat]);
SendClientMessage(playerid, SVETLOPLAVA, string);
format(string, sizeof(string), "Droga: {FFFFFF}%d", droga[cripsdrug]);
SendClientMessage(playerid, SVETLOPLAVA, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s otvara sef i provjerava sta ima unutra.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else if(PlayerToPoint(4.0, playerid,2814.7437,-1166.8813,1025.5778))
{
if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
{//bikeri
    SendClientMessage(playerid, COLOR_WHITE, "Stanje u sefu:");
format(string, sizeof(string), "Materijali: {FFFFFF}%d", materijal[bloodsmat]);
SendClientMessage(playerid, SVETLOPLAVA, string);
format(string, sizeof(string), "Droga: {FFFFFF}%d", droga[bloodsdrug]);
SendClientMessage(playerid, SVETLOPLAVA, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s otvara sef i provjerava sta ima unutra.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else if(PlayerToPoint(4.0, playerid,333.4601,1119.7482,1083.8903))
{
if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
{//tec
    SendClientMessage(playerid, COLOR_WHITE, "Stanje u sefu:");
format(string, sizeof(string), "Materijali: {FFFFFF}%d", materijal[rusmat]);
SendClientMessage(playerid, SVETLOPLAVA, string);
format(string, sizeof(string), "Droga: {FFFFFF}%d", droga[rusdrug]);
SendClientMessage(playerid, SVETLOPLAVA, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s otvara sef i provjerava sta ima unutra.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else if(PlayerToPoint(4.0, playerid, 2329.2927,-1180.6565,1027.9766))
{
if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13) //surenosi
{
    SendClientMessage(playerid, COLOR_WHITE, "Stanje u sefu:");
format(string, sizeof(string), "Materijali: {FFFFFF}%d", materijal[lsurenmat]);
SendClientMessage(playerid, SVETLOPLAVA, string);
format(string, sizeof(string), "Droga: {FFFFFF}%d", droga[lsurendrug]);
SendClientMessage(playerid, SVETLOPLAVA, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s otvara sef i provjerava sta ima unutra.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else if(PlayerToPoint(4.0, playerid, 301.9337,302.0425,1003.5391))
{
if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14) //cr
{
    SendClientMessage(playerid, COLOR_WHITE, "Stanje u sefu:");
format(string, sizeof(string), "Materijali: {FFFFFF}%d", materijal[cracermat]);
SendClientMessage(playerid, SVETLOPLAVA, string);
format(string, sizeof(string), "Droga: {FFFFFF}%d", droga[cracerdrug]);
SendClientMessage(playerid, SVETLOPLAVA, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s otvara sef i provjerava sta ima unutra.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste ispred sefa ili niste lider mafije/bande!");
}
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Morate biti minimum rank 5!");
}
return 1;
}
if(strcmp(cmd, "/asefinfo", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 3)
    {
            UcitajMaterijale();
            UcitajDrogu();
            new asefinfo[512];
new coordstring1[128];
new coordstring2[128];
new coordstring3[128];
new coordstring4[128];
new coordstring5[128];
new coordstring6[128];
new coordstring7[128];
format(coordstring1, sizeof(coordstring1), "{00C0FF}L.C.N: Mat's: {FFFFFF}%d "COL_SVPLAVA"Droga: {FFFFFF}%d\n", materijal[lcnmat],droga[lcndrug]);
format(coordstring2, sizeof(coordstring2), "{00C0FF}Yakuza: Mat's: {FFFFFF}%d "COL_SVPLAVA"Droga: {FFFFFF}%d\n", materijal[yakuzamat],droga[yakuzadrug]);
format(coordstring3, sizeof(coordstring3), "{00C0FF}Vagos:  Mat's: {FFFFFF}%d "COL_SVPLAVA"Droga: {FFFFFF}%d\n", materijal[bloodsmat],droga[bloodsdrug]);
format(coordstring4, sizeof(coordstring4), "{00C0FF}Grove St.:  Mat's: {FFFFFF}%d "COL_SVPLAVA"Droga: {FFFFFF}%d\n", materijal[cripsmat],droga[cripsdrug]);
format(coordstring5, sizeof(coordstring5), "{00C0FF}Ballas:  Mat's: {FFFFFF}%d "COL_SVPLAVA"Droga: {FFFFFF}%d\n", materijal[rusmat],droga[rusdrug]);
format(coordstring6, sizeof(coordstring6), "{00C0FF}L.Surenos:  Mat's: {FFFFFF}%d "COL_SVPLAVA"Droga: {FFFFFF}%d\n", materijal[lsurenmat],droga[lsurendrug]);
format(coordstring7, sizeof(coordstring7), "{00C0FF}C.Racer's:  Mat's: {FFFFFF}%d "COL_SVPLAVA"Droga: {FFFFFF}%d\n", materijal[cracermat],droga[cracerdrug]);
format(asefinfo, 512," %s%s%s%s%s%s",coordstring1,coordstring2,coordstring3,coordstring4,coordstring5,coordstring6);
ShowPlayerDialog(playerid, 999, DIALOG_STYLE_MSGBOX,"{00C0FF}- Provjera stanja u sefu -",asefinfo,"< Uredu >","");
}
return 1;
}
if(strcmp(cmd, "/cashboxstart", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 2)
    {
if(mode == 1 || mode == 2)
{
    if(IsGameStarted != 1)
    {
cashboxstarttimer = SetTimer("StartNewCashboxGame", 5000, 0);
SendClientMessageToAll(COLOR_WHITE,"Lov na aktovku ce poceti za 5 sekundi!");
IsGameStarted = 1;
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Igra je vec pocela!");
}
}
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste ovlasteni da koristite tu komandu!");
}
return 1;
}
if(strcmp(cmd, "/cashboxstop", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 2)
    {
    if(IsGameStarted == 1)
{
if(IsTextdrawCreated == 1)
{
TextDrawHideForAll(ValueText);
TextDrawDestroy(ValueText);
IsTextdrawCreated = 0;
}
DestroyPickup(CashboxPickup);
KillTimer(cashboxstarttimer);
KillTimer(DropValueTimer);
IsGameStarted = 0;
CashboxPickup = CreatePickup(1210, 3, 0, 0, 1000);
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"Igra jos nije pocela!");
}
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste ovlasteni da koristite tu komandu!");
}
return 1;
}
if(strcmp(cmdtext, "/cashboxhint", true)==0 || strcmp(cmdtext, "/cbh", true)==0)
{
if(PlayerCuffed[playerid] == 0 && PlayerTied[playerid] == 0 &&  PlayerFreezed[playerid] == 0)
{
if(IsGameStarted != 1)
{
    return 1;
}
    if(mode == 2)
    {
    new randX = -100+random(200);
new randY = -100+random(200);
SetPlayerCameraPos(playerid, CashboxX+randX, CashboxY+randY, (CashboxZ+60));
SetPlayerCameraLookAt(playerid, CashboxX, CashboxY, CashboxZ);
    TogglePlayerControllable(playerid, 0);
    SetTimerEx("ResetCam", 4000, 0, "i", playerid);
}
}
return 1;
}
if(strcmp(cmd, "/gotolist", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 2)
    {
SendClientMessage(playerid, COLOR_GRAD2, "Lokacije: gotols, gotosf, gotolv, gotobolnica, gotoburg");
SendClientMessage(playerid, COLOR_GRAD2, "Lokacije: gotobank, gotospawn, gotostunt");
SendClientMessage(playerid, COLOR_GRAD2, "Lokacije: gotocross, gotocross1, gotohell, gotohell1");
SendClientMessage(playerid, COLOR_GRAD2, "Lokacije: gotorace, gotomonster, gotosurvivor");
}
        else
        {
SendClientMessage(playerid, COLOR_WHITE, "   Niste ovlasteni da koristite tu komandu !");
        }
}
if(strcmp(cmd, "/vozila", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGameSage] >= 2)
    {
        ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Vozila za Trke", "Cross Motori\nAero Race Motori\nAero Race Auta\nBeach Buggy\nMonster Truck\nDestruction Derby\nStunt Cross\nSurvivor Motori\nNovi Race", "Stvori", "Odustani");
        return 1;
        }
        else
        {
SendClientMessage(playerid, COLOR_WHITE, "Niste ovlasteni da koristite tu komandu !");
        }
    }
    if(strcmp(cmd, "/buy", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if (PlayerToPoint(5.0, playerid,-29.3113,-184.1468,1003.5469)) //kiosk
{
if(BizzInfo[11][bProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Nema Produkata", 5000, 1);
return 1;
}
ShowPlayerDialog(playerid, 203, DIALOG_STYLE_LIST, "{00C0FF}SuperMarket", "Mobitel 150$\nSrecka $500\nImenik $100\nKockica $10\nUpaljac $5\nCigare $30\nKondom $1\nKamera $50\nMaska $500\nSat $100\nOprema za ribolov $150\nKonop $10\nSprej $50\nPovez $10", "U redu", "Odustani");
}
else if (PlayerToPoint(5.0, playerid,2.1480,-28.0041,1003.5494)) //kiosk br 2
{
if(BizzInfo[12][bProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Nema Produkata", 5000, 1);
return 1;
}
ShowPlayerDialog(playerid, 204, DIALOG_STYLE_LIST, "{00C0FF}SuperMarket", "Mobitel 150$\nSrecka $500\nImenik $100\nKockica $10\nUpaljac $5\nCigare $30\nKondom $1\nKamera $50\nMaska $500\nSat $100\nOprema za ribolov $150\nKonop $10\nSprej $50\nPovez $10", "U redu", "Odustani");
}
else if (PlayerToPoint(5.0, playerid,-28.1822,-89.2201,1003.5469)) //kiosk br 3
{
if(BizzInfo[13][bProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Nema Produkata", 5000, 1);
return 1;
}
ShowPlayerDialog(playerid, 205, DIALOG_STYLE_LIST, "{00C0FF}SuperMarket", "Mobitel 150$\nSrecka $500\nImenik $100\nKockica $10\nUpaljac $5\nCigare $30\nKondom $1\nKamera $50\nMaska $500\nSat $100\nOprema za ribolov $150\nKonop $10\nSprej $50\nPovez $10", "U redu", "Odustani");
}
else if (PlayerToPoint(5.0, playerid,-22.2104,-138.0743,1003.5469)) //kiosk br 4
{
if(BizzInfo[14][bProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Nema Produkata", 5000, 1);
return 1;
}
ShowPlayerDialog(playerid, 206, DIALOG_STYLE_LIST, "{00C0FF}SuperMarket", "Mobitel 150$\nSrecka $500\nImenik $100\nKockica $10\nUpaljac $5\nCigare $30\nKondom $1\nKamera $50\nMaska $500\nSat $100\nOprema za ribolov $150\nKonop $10\nSprej $50\nPovez $10", "U redu", "Odustani");
}
else if (PlayerToPoint(5.0, playerid,-30.8499,-28.5352,1003.5573)) //kiosk br 5
{
if(BizzInfo[15][bProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Nema Produkata", 5000, 1);
return 1;
}
ShowPlayerDialog(playerid, 207, DIALOG_STYLE_LIST, "{00C0FF}SuperMarket", "Mobitel 150$\nSrecka $500\nImenik $100\nKockica $10\nUpaljac $5\nCigare $30\nKondom $1\nKamera $50\nMaska $500\nSat $100\nOprema za ribolov $150\nKonop $10\nSprej $50\nPovez $10", "U redu", "Odustani");
}
else if (PlayerToPoint(5.0, playerid,-23.6264,-54.9116,1003.5469)) //kiosk br 6
{
if(BizzInfo[16][bProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Nema Produkata", 5000, 1);
return 1;
}
ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "{00C0FF}SuperMarket", "Mobitel 150$\nSrecka $500\nImenik $100\nKockica $10\nUpaljac $5\nCigare $30\nKondom $1\nKamera $50\nMaska $500\nSat $100\nOprema za ribolov $150\nKonop $10\nSprej $50\nPovez $10", "U redu", "Odustani");
}
else
            {
        SendClientMessage(playerid, WHITE, "("COL_RED"Greska{FFFFFF}!) Ne nalazite se u "COL_RED"SuperMarketu!");
    return 1;
            }
}
return 1;
}
    if(strcmp(cmd, "/kiosk", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if (PlayerToPoint(4.0, playerid,1531.0088,-1738.5283,13.5469)) //kiosk
{
if(SBizzInfo[16][sbProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Nema Produkata", 5000, 1);
return 1;
}
ShowPlayerDialog(playerid, 69, DIALOG_STYLE_LIST, "{00C0FF}SuperMarket", "Mobitel 150$\nSrecka $500\nImenik $100\nKockica $10\nUpaljac $5\nCigare $30\nKondom $1\nKamera $50\nMaska $500\nSat $100\nOprema za ribolov $150\nKonop $10\nSprej $50\nPovez $10", "U redu", "Odustani");
}
else if (PlayerToPoint(4.0, playerid,1484.0363,-1029.4645,23.6563)) //kiosk br 2
{
if(SBizzInfo[17][sbProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Nema Produkata", 5000, 1);
return 1;
}
ShowPlayerDialog(playerid, 79, DIALOG_STYLE_LIST, "{00C0FF}SuperMarket", "Mobitel 150$\nSrecka $500\nImenik $100\nKockica $10\nUpaljac $5\nCigare $30\nKondom $1\nKamera $50\nMaska $500\nSat $100\nOprema za ribolov $150\nKonop $10\nSprej $50\nPovez $10", "U redu", "Odustani");
}
else if (PlayerToPoint(4.0, playerid,1147.3217,-935.4334,43.1540)) //kiosk br 3
{
if(SBizzInfo[18][sbProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Nema Produkata", 5000, 1);
return 1;
}
ShowPlayerDialog(playerid, 89, DIALOG_STYLE_LIST, "{00C0FF}SuperMarket", "Mobitel 150$\nSrecka $500\nImenik $100\nKockica $10\nUpaljac $5\nCigare $30\nKondom $1\nKamera $50\nMaska $500\nSat $100\nOprema za ribolov $150\nKonop $10\nSprej $50\nPovez $10", "U redu", "Odustani");
}
else if (PlayerToPoint(4.0, playerid,1230.8046,-1276.6183,13.3828)) //kiosk br 4
{
if(SBizzInfo[19][sbProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Nema Produkata", 5000, 1);
return 1;
}
ShowPlayerDialog(playerid, 99, DIALOG_STYLE_LIST, "{00C0FF}SuperMarket", "Mobitel 150$\nSrecka $500\nImenik $100\nKockica $10\nUpaljac $5\nCigare $30\nKondom $1\nKamera $50\nMaska $500\nSat $100\nOprema za ribolov $150\nKonop $10\nSprej $50\nPovez $10", "U redu", "Odustani");
}
else if (PlayerToPoint(4.0, playerid,1827.5243,-1891.1887,13.5174)) //kiosk br 5
{
if(SBizzInfo[20][sbProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Nema Produkata", 5000, 1);
return 1;
}
ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "{00C0FF}SuperMarket", "Mobitel 150$\nSrecka $500\nImenik $100\nKockica $10\nUpaljac $5\nCigare $30\nKondom $1\nKamera $50\nMaska $500\nSat $100\nOprema za ribolov $150\nKonop $10\nSprej $50\nPovez $10", "U redu", "Odustani");
}
else if (PlayerToPoint(4.0, playerid,2012.1190,-1455.0481,13.5547)) //kiosk br 6
{
if(SBizzInfo[9][sbProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Nema Produkata", 5000, 1);
return 1;
}
ShowPlayerDialog(playerid, 210, DIALOG_STYLE_LIST, "{00C0FF}SuperMarket", "Mobitel 150$\nSrecka $500\nImenik $100\nKockica $10\nUpaljac $5\nCigare $30\nKondom $1\nKamera $50\nMaska $500\nSat $100\nOprema za ribolov $150\nKonop $10\nSprej $50\nPovez $10", "U redu", "Odustani");
}
else
            {
        SendClientMessage(playerid, WHITE, "("COL_RED"Greska{FFFFFF}!) Ne nalazite se kod "COL_RED"Kioska!");
    return 1;
            }
}
return 1;
}
   if (strcmp("/neon", cmdtext, true, 10) == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
  if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
{
SendClientMessage(playerid, WHITE, "("COL_RED"Greska{FFFFFF}!) Niste vozac!");
return 1;
}
if(PlayerToPoint(5.0,playerid,1034.4844,-1103.4556,23.8281))
{
ShowPlayerDialog(playerid, NEON, DIALOG_STYLE_LIST, "[Neonke]","Plava\nZelena\nZuta\nBijela\nRoza\nBrisanje Neonki","Postavi","Odustani");
}
else { SendClientMessage(playerid, WHITE, "("COL_RED"Greska{FFFFFF}!) Niste kod Mehanicara!"); }
}
else
{
    SendClientMessage(playerid, WHITE, "("COL_RED"Greska{FFFFFF}!) Moras biti u vozilu!");
}
return 1;
}
if(strcmp(cmd, "/destroyspawncars", true) == 0 || strcmp(cmd, "/dsc", true) == 0) // by Ellis
{
    if(IsPlayerConnected(playerid))
    {
        if(PlayerInfo[playerid][pAdmin] < 2)
{
    SendClientMessage(playerid, COLOR_GRAD1, "   Niste ovlasteni da koristite tu komandu!");
    return 1;
}
for(new car = 551; car < sizeof(CreatedCars); car++)
{
DestroyVehicle(car);
}
sftrackveh = 0;
mchilladveh = 0;
buggyveh = 0;
monsterveh = 0;
survivorveh = 0;
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "G-Shock %s je unistio sva stvorena vozila .", sendername);
SendClientMessage(playerid,COLOR_WHITE," Unistili ste sva stvorena vozila ");
BroadCast(COLOR_WHITE,string);
}
return 1;
}
//HEAL ALL
    if (strcmp("/healall", cmdtext, true, 10) == 0)
    {
if(IsPlayerConnected(playerid))
{
        if (PlayerInfo[playerid][pAdmin] >= 1337)
        {
foreach (Player, i)
{
SetPlayerHealth(i,100)
}
SendClientMessage(playerid, WHITE, "("COL_ORANGE"Obavijest{FFFFFF}!) Izlijecio si sve igrace!");
}
  else
  {
SendClientMessage(playerid, WHITE, "("COL_RED"G-Shock{FFFFFF}!) Niste ovlasteni da koristite tu komandu!");
}
}
return 1;
}
//GIVEMONEY ALL
    if (strcmp("/agivemoneyall", cmdtext, true, 10) == 0)
    {
if(IsPlayerConnected(playerid))
{
        if (PlayerInfo[playerid][pAdmin] >= 1338)
        {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /agivemoneyall [novac]");
return 1;
}
        new money;
// tmp = strtok(cmdtext, idx);
money = strval(tmp);
                foreach (Player, i)
{
GivePlayerCash(i,money);
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Dali ste svim igracima %d $",money);
SendClientMessage(playerid,COLOR_WHITE,string);
format(string, sizeof(string), "("COL_RED"G-Shock{FFFFFF}!) "COL_RED"%s "COL_WHITE"je dao "COL_RED"%d$ "COL_WHITE"svim igracima",sendername,money);
ABroadCast(WHITE,string,1);
}
  else
  {
SendClientMessage(playerid, COLOR_WHITE, "Niste ovlasteni da koristite tu komandu !");
}
}
return 1;
}

if (strcmp("/dres1", cmdtext, true, 10) == 0)
{
if(PlayerToPoint(1.5, playerid, 2799.3735,-2015.9606,13.5546))
{
SetPlayerSkin(playerid, 176)
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string,sizeof(string), "* %s oblaci dres 1.", sendername);
SendClientMessage(playerid, COLOR_WHITE, "   Obukli ste Dres 1 !");
}
}
if (strcmp("/dres2", cmdtext, true, 10) == 0)
{
if(PlayerToPoint(1.5, playerid, 2799.9907,-2022.8815,13.5546))
{
SetPlayerSkin(playerid, 180)
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string,sizeof(string), "* %s oblaci dres 2.", sendername);
SendClientMessage(playerid, COLOR_WHITE, "   Obukli ste Dres 2 !");
}
}
        return 1;
}





dcmd_warn(playerid,params[]) {
    if(PlayerInfo[playerid][pAdmin] >= 1) {
    new tmp[256], tmp2[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index);
    if(!strlen(tmp) || !strlen(tmp2)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /warn [playerid] [reason]");
    new warned = strval(tmp), str[128];
    new sendername[MAX_PLAYER_NAME];
    new giveplayer[MAX_PLAYER_NAME];
// if(PlayerInfo[warned][Level] == ServerInfo[MaxAdminLevel] && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) return SendClientMessage(playerid,red,"ERROR: You cannot use this command on this admin");
if(IsPlayerConnected(warned) && warned != INVALID_PLAYER_ID) {
    if(warned != playerid) {
    ABroadCast(warned,"WARN",1);
PlayerInfo[warned][pWarns]++;
if( PlayerInfo[warned][pWarns] == MAX_WARNINGS) {
GetPlayerName(warned, sendername, sizeof(sendername));
format(str, sizeof (str), "*** \"%s\" je banovan zbog opomena \"%s\".  (Razlog: %s) (Warn: %d/5)***",sendername, params[1+strlen(tmp)], PlayerInfo[warned][pWarns]);
SendClientMessageToAll(COLOR_RED, str);
BanLog(str);
Ban(warned);
return PlayerInfo[warned][pWarns] = 0;
} else {
GetPlayerName(warned, sendername, sizeof(sendername));
GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
format(str, sizeof (str), "***Admin \"%s\" je dao \"%s\" a warn.  (Reason: %s) (Warning: %d/5)***",giveplayer,sendername, params[1+strlen(tmp)], PlayerInfo[warned][pWarns]);
return SendClientMessageToAll(COLOR_YELLOW, str);
}
} else return SendClientMessage(playerid, COLOR_RED, "G-Shock: Ne mozete dati sebi warn");
} else return SendClientMessage(playerid, COLOR_RED, "G-Shock: Igrac nije konektovan");
} else return SendClientMessage(playerid,COLOR_RED,"G-Shock: Niste dovoljan Admin level da koristite tu komandu");
Poslednja Izmena: Januar 14, 2012, 22:33:29 POSLE PODNE od [CЯP] joXy_