[Pomoc]Kindapovanje

Započeo (BSL)MasteR, Decembar 24, 2011, 13:53:46 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:FactionGame Edit
Detaljan opis problema:Jel moze nek oda mi kaze kak oda napravim da na /tie komandu kindapujem i crna slika da mu bude i vezan a ne kao sto je vec kod mene prvo mora /knockout pa /povez pa /tie
Dio skripte:/
Neke slike/video za lakse dobivanje pomoci(neobavezno):/
Balkan Online Public CS 1.6
IP:188.40.52.207:27027
Forum: www.cs-balkanonline.site40.net
Posjetite nas......

if(strcmp(cmd, "/tie", true) == 0 || strcmp(cmd, "/vezi", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
         if(PlayerTied[playerid] > 0)
         {
            SendClientMessage(playerid, COLOR_GREY, "   Vezani ste!");
            return 1;
         }
         if(PlayerCuffed[playerid] > 0)
         {
            SendClientMessage(playerid, COLOR_GREY, "   Stavljene su vam lisice ili ste taznuti!");
            return 1;
         }
         if(Rope[playerid] != 0)
         {
             if(PlayerInfo[playerid][pLevel] < 2)
             {
                 SendClientMessage(playerid, COLOR_GREY, "   Morate biti barem level 2 da vezete ! ");
                 return 1;
             }
             tmp = strtok(cmdtext, idx);
            if(!strlen(tmp)) {
               SendClientMessage(playerid, COLOR_WHITE, "Koriscenje: /vezi [ID Igraca/Dio Imena]");
               return 1;
            }
            giveplayerid = ReturnUser(tmp);
             if(IsPlayerConnected(giveplayerid))
            {
                if(giveplayerid != INVALID_PLAYER_ID)
                {
                  if(KnockedDown[giveplayerid] != 1)
                  {
                     SendClientMessage(playerid, COLOR_GREY, "Ne mozete vezati tog igraca jer nije oboren!");
                     return 1;
                  }
                   if(PlayerTied[giveplayerid] > 0)
                   {
                       SendClientMessage(playerid, COLOR_GREY, "   Igrac je vec vezan !");
                       return 1;
                   }
                  if (ProxDetectorS(8.0, playerid, giveplayerid))
                  {
                      new car = GetPlayerVehicleID(playerid);
                      if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "Ne mozete vezati sebe!"); return 1; }
                      if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == 2 && IsPlayerInVehicle(giveplayerid, car))
                      {
                          GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                          format(string, sizeof(string), "* %s vas je vezao.", sendername);
                        SendClientMessage(giveplayerid, COLOR_WHITE, string);
                        format(string, sizeof(string), "* Vezali ste %s-a.", giveplayer);
                        SendClientMessage(playerid, COLOR_WHITE, string);
                        format(string, sizeof(string), "* %s je vezao %s-a.", sendername ,giveplayer);
                        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        GameTextForPlayer(giveplayerid, "~r~Vezan", 2500, 3);
                        TogglePlayerControllable(giveplayerid, 0);
                        PlayerTied[giveplayerid] = 1;
                        KnockedDown[giveplayerid] = 0;
                        KillTimer(oborentimer);
                        Rope[playerid]--;
                      }
                      else
                      {
                          SendClientMessage(playerid, COLOR_GREY, "   Igrac nije u vasem autu, ili vi niste vozac !");
                          return 1;
                      }
                  }
                  else
                  {
                      SendClientMessage(playerid, COLOR_GREY, "   Igrac nije blizu vas !");
                      return 1;
                  }
               }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "   Igrac je offline !");
                return 1;
            }
         }
         else
         {
            SendClientMessage(playerid, COLOR_GREY, "   Nemate Konop !");
         }
      }
      return 1;
   }
   if(strcmp(cmd, "/untie", true) == 0 || strcmp(cmd, "/odvezi", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
         tmp = strtok(cmdtext, idx);
         if(!strlen(tmp)) {
            SendClientMessage(playerid, COLOR_WHITE, "Koriscenje: /odvezi [ID Igraca/Dio Imena]");
            return 1;
         }
         giveplayerid = ReturnUser(tmp);
         if(IsPlayerConnected(giveplayerid))
         {
            if(giveplayerid != INVALID_PLAYER_ID)
            {
                if (ProxDetectorS(8.0, playerid, giveplayerid))
               {
                   if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "Ne mozete se sami odvezati!"); return 1; }
                  if(PlayerTied[giveplayerid])
                  {
                      GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                     GetPlayerName(playerid, sendername, sizeof(sendername));
                      format(string, sizeof(string), "* Odvezao vas je %s.", sendername);
                     SendClientMessage(giveplayerid, COLOR_WHITE, string);
                     format(string, sizeof(string), "* Odvezali ste %s-a.", giveplayer);
                     SendClientMessage(playerid, COLOR_WHITE, string);
                     GameTextForPlayer(giveplayerid, "~g~Odvezan", 2500, 3);
                     TogglePlayerControllable(giveplayerid, 1);
                     PlayerTied[giveplayerid] = 0;
                     format(string, sizeof(string), "* %s je odvezao %s-a i uzeo je konopac.", sendername, giveplayer);
                        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        Rope[playerid]++;
                  }
                  else
                  {
                      SendClientMessage(playerid, COLOR_GREY, "   Taj igrac nije vezan !");
                      return 1;
                  }
               }
               else
               {
                   SendClientMessage(playerid, COLOR_GREY, "   Taj igrac nije blizu vas !");
                   return 1;
               }
            }
         }
         else
         {
             SendClientMessage(playerid, COLOR_GREY, "   Igrac je offline !");
             return 1;
         }
      }//not connected
      return 1;
   }

Kad hoce da ga veze [tie] mora bidi igrac u vozili onda ga /knockout nakautira i onda tek moze vezi i povez

@Master - daj komandu

@Lukas - si ti normalan?Procitaj jos jednom njegov post.

ovo je da vezes i odvezes
if(strcmp(cmd, "/tie", true) == 0 || strcmp(cmd, "/vezi", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if(PlayerTied[playerid] > 0)
{
SendClientMessage(playerid, COLOR_GREY, "   Vezani ste!");
return 1;
}
if(PlayerCuffed[playerid] > 0)
{
SendClientMessage(playerid, COLOR_GREY, "   Stavljene su vam lisice ili ste taznuti!");
return 1;
}
if(Rope[playerid] != 0)
{
    if(PlayerInfo[playerid][pLevel] < 2)
    {
        SendClientMessage(playerid, COLOR_GREY, "   Morate biti barem level 2 da vezete ! ");
        return 1;
    }
    tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "Koriscenje: /vezi [ID Igraca/Dio Imena]");
return 1;
}
giveplayerid = ReturnUser(tmp);
    if(IsPlayerConnected(giveplayerid))
{
    if(giveplayerid != INVALID_PLAYER_ID)
    {
if(KnockedDown[giveplayerid] != 1)
{
SendClientMessage(playerid, COLOR_GREY, "Ne mozete vezati tog igraca jer nije oboren!");
return 1;
}
    if(PlayerTied[giveplayerid] > 0)
    {
        SendClientMessage(playerid, COLOR_GREY, "   Igrac je vec vezan !");
        return 1;
    }
if (ProxDetectorS(8.0, playerid, giveplayerid))
{
    new car = GetPlayerVehicleID(playerid);
    if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "Ne mozete vezati sebe!"); return 1; }
    if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == 2 && IsPlayerInVehicle(giveplayerid, car))
    {
        GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "* %s vas je vezao.", sendername);
SendClientMessage(giveplayerid, COLOR_WHITE, string);
format(string, sizeof(string), "* Vezali ste %s-a.", giveplayer);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "* %s je vezao %s-a.", sendername ,giveplayer);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GameTextForPlayer(giveplayerid, "~r~Vezan", 2500, 3);
TogglePlayerControllable(giveplayerid, 0);
PlayerTied[giveplayerid] = 1;
//KnockedDown[giveplayerid] = 0;
KillTimer(oborentimer);
Rope[playerid]--;
    }
    else
    {
        SendClientMessage(playerid, COLOR_GREY, "   Igrac nije u vasem autu, ili vi niste vozac !");
        return 1;
    }
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "   Igrac nije blizu vas !");
    return 1;
}
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "   Igrac je offline !");
    return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "   Nemate Konop !");
}
}
return 1;
}
if(strcmp(cmd, "/untie", true) == 0 || strcmp(cmd, "/odvezi", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "Koriscenje: /odvezi [ID Igraca/Dio Imena]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
    if (ProxDetectorS(8.0, playerid, giveplayerid))
{
    if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "Ne mozete se sami odvezati!"); return 1; }
if(PlayerTied[giveplayerid])
{
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* Odvezao vas je %s.", sendername);
SendClientMessage(giveplayerid, COLOR_WHITE, string);
format(string, sizeof(string), "* Odvezali ste %s-a.", giveplayer);
SendClientMessage(playerid, COLOR_WHITE, string);
GameTextForPlayer(giveplayerid, "~g~Odvezan", 2500, 3);
TogglePlayerControllable(giveplayerid, 1);
PlayerTied[giveplayerid] = 0;
format(string, sizeof(string), "* %s je odvezao %s-a i uzeo je konopac.", sendername, giveplayer);
      ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
      Rope[playerid]++;
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "   Taj igrac nije vezan !");
    return 1;
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "   Taj igrac nije blizu vas !");
    return 1;
}
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "   Igrac je offline !");
    return 1;
}
}//not connected
return 1;
}
if(strcmp(cmd, "/copuntie", true) == 0 || strcmp(cmd, "/odvezipolicajca", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if(IsACop(playerid))
{
    /*if(PlayerInfo[playerid][pRank] < 3)
    {
        SendClientMessage(playerid, COLOR_GREY, "   You need Rank 3 or higher to untie people !");
        return 1;
    }*/
    tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "Koriscenje: /copuntie [ID Igraca/Dio Imena]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
    if (ProxDetectorS(8.0, playerid, giveplayerid))
{
    if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "Ne mozete se sami odvezati!"); return 1; }
if(PlayerTied[giveplayerid])
{
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* Odvezao vas je %s.", sendername);
SendClientMessage(giveplayerid, COLOR_WHITE, string);
format(string, sizeof(string), "* Odvezali ste %s-a.", giveplayer);
SendClientMessage(playerid, COLOR_WHITE, string);
GameTextForPlayer(giveplayerid, "~g~Odvezan", 2500, 3);
TogglePlayerControllable(giveplayerid, 1);
PlayerTied[giveplayerid] = 0;
format(string, sizeof(string), "* %s je odvezao %s-a.", sendername, giveplayer);
      ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "   Taj igrac nije vezan !");
    return 1;
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "   Igrac nije blizu vas !");
    return 1;
}
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "   Igrac je offline !");
    return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "   Niste Policajac !");
}
}//not connected
return 1;
}


a ovo je da stavis povez
//POVEZ NA OCI
if(strcmp(cmd, "/povez", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if(Povez[playerid] != 0)
{
if(PlayerInfo[playerid][pLevel] < 2)
{
SendClientMessage(playerid, COLOR_GREY, "   Morate biti barem level 2 da stavite nekome povez ! ");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "Koriscenje: /povez [ID Igraca/Dio Imena]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if(PlayerBlind[giveplayerid] > 0)
{
SendClientMessage(playerid, COLOR_GREY, "   Igracu je vec stavljen povez !");
return 1;
}
if(PlayerTied[giveplayerid] != 1)
      {
      SendClientMessage(playerid, COLOR_GREY, "   Igrac mora biti prvo vezan ! ");
      return 1;
}
if (ProxDetectorS(8.0, playerid, giveplayerid))
{
new car = GetPlayerVehicleID(playerid);
if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "Ne mozete staviti povez sebi!"); return 1; }
if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == 2 && IsPlayerInVehicle(giveplayerid, car))
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s vam je stavio povez.", sendername);
SendClientMessage(giveplayerid, COLOR_WHITE, string);
format(string, sizeof(string), "* Stavili ste povez na oci %s-u.", giveplayer);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "* %s je stavio povez na oci %s-u.", sendername ,giveplayer);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GameTextForPlayer(giveplayerid, "~r~Stavljen vam je povez", 2500, 3);
//TogglePlayerControllable(giveplayerid, 0);
PlayerBlind[giveplayerid] = 1;
TextDrawShowForPlayer(giveplayerid,Text:Poveznaoci);
Povez[playerid]--;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "   Igrac nije u vasem autu, ili vi niste vozac !");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "   Igrac nije blizu vas !");
return 1;
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "   Igrac je offline !");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "   Nemate Povez !");
}
}
return 1;
}
//SKIDANJE POVEZA
if(strcmp(cmd, "/spovez", true) == 0 || strcmp(cmd, "/skinipovez", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "Koriscenje: /spovez [ID Igraca/Dio Imena]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
    if (ProxDetectorS(8.0, playerid, giveplayerid))
{
    if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "Ne mozete sami skinuti povez!"); return 1; }
if(PlayerBlind[giveplayerid])
{
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* Povez vam je skinuo %s.", sendername);
SendClientMessage(giveplayerid, COLOR_WHITE, string);
format(string, sizeof(string), "* Skinuli ste povez %s-u.", giveplayer);
SendClientMessage(playerid, COLOR_WHITE, string);
GameTextForPlayer(giveplayerid, "~g~Skinut vam je povez", 2500, 3);
TextDrawHideForPlayer(giveplayerid,Text:Poveznaoci);
//TogglePlayerControllable(giveplayerid, 1);
PlayerBlind[giveplayerid] = 0;
format(string, sizeof(string), "* %s je skinuo povez %s-u i uzeo povez.", sendername, giveplayer);
      ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
      Povez[playerid]++;
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "   Tom igracu nije stavljen povez !");
    return 1;
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "   Taj igrac nije blizu vas !");
    return 1;
}
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "   Igrac je offline !");
    return 1;
}
}//not connected
return 1;
}


ja ocu da ima samo /tie i /untie da vezem odvezem
Balkan Online Public CS 1.6
IP:188.40.52.207:27027
Forum: www.cs-balkanonline.site40.net
Posjetite nas......

Evo :

if(strcmp(cmd, "/tie", true) == 0 || strcmp(cmd, "/vezi", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if(PlayerTied[playerid] > 0)
{
SendClientMessage(playerid, COLOR_GREY, "   Vezani ste!");
return 1;
}
if(PlayerCuffed[playerid] > 0)
{
SendClientMessage(playerid, COLOR_GREY, "   Stavljene su vam lisice ili ste taznuti!");
return 1;
}
if(Rope[playerid] != 0)
{
    if(PlayerInfo[playerid][pLevel] < 2)
    {
        SendClientMessage(playerid, COLOR_GREY, "   Morate biti barem level 2 da vezete ! ");
        return 1;
    }
    tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "Koriscenje: /vezi [ID Igraca/Dio Imena]");
return 1;
}
giveplayerid = ReturnUser(tmp);
    if(IsPlayerConnected(giveplayerid))
{
    if(giveplayerid != INVALID_PLAYER_ID)
    {
    if(PlayerTied[giveplayerid] > 0)
    {
        SendClientMessage(playerid, COLOR_GREY, "   Igrac je vec vezan !");
        return 1;
    }
if (ProxDetectorS(8.0, playerid, giveplayerid))
{
    new car = GetPlayerVehicleID(playerid);
    if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "Ne mozete vezati sebe!"); return 1; }
    if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == 2 && IsPlayerInVehicle(giveplayerid, car))
    {
        GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "* %s vas je vezao.", sendername);
SendClientMessage(giveplayerid, COLOR_WHITE, string);
format(string, sizeof(string), "* Vezali ste %s-a.", giveplayer);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "* %s je vezao %s-a.", sendername ,giveplayer);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GameTextForPlayer(giveplayerid, "~r~Vezan", 2500, 3);
TogglePlayerControllable(giveplayerid, 0);
PlayerBlind[giveplayerid] = 1;
    TextDrawShowForPlayer(giveplayerid,Text:Poveznaoci);
    Povez[playerid]--;
PlayerTied[giveplayerid] = 1;
//KnockedDown[giveplayerid] = 0;
KillTimer(oborentimer);
Rope[playerid]--;
    }
    else
    {
        SendClientMessage(playerid, COLOR_GREY, "   Igrac nije u vasem autu, ili vi niste vozac !");
        return 1;
    }
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "   Igrac nije blizu vas !");
    return 1;
}
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "   Igrac je offline !");
    return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "   Nemate Konop !");
}
}
return 1;
}
if(strcmp(cmd, "/untie", true) == 0 || strcmp(cmd, "/odvezi", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "Koriscenje: /odvezi [ID Igraca/Dio Imena]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
    if (ProxDetectorS(8.0, playerid, giveplayerid))
{
    if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "Ne mozete se sami odvezati!"); return 1; }
if(PlayerTied[giveplayerid])
{
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* Odvezao vas je %s.", sendername);
SendClientMessage(giveplayerid, COLOR_WHITE, string);
format(string, sizeof(string), "* Odvezali ste %s-a.", giveplayer);
SendClientMessage(playerid, COLOR_WHITE, string);
GameTextForPlayer(giveplayerid, "~g~Odvezan", 2500, 3);
TogglePlayerControllable(giveplayerid, 1);
TextDrawHideForPlayer(giveplayerid,Text:Poveznaoci);
PlayerBlind[giveplayerid] = 0;
format(string, sizeof(string), "* %s je skinuo povez %s-u i uzeo povez.", sendername, giveplayer);
      ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
      Povez[playerid]++;
PlayerTied[giveplayerid] = 0;
format(string, sizeof(string), "* %s je odvezao %s-a i uzeo je konopac.", sendername, giveplayer);
      ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
      Rope[playerid]++;
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "   Taj igrac nije vezan !");
    return 1;
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "   Taj igrac nije blizu vas !");
    return 1;
}
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "   Igrac je offline !");
    return 1;
}
}//not connected
return 1;
}
if(strcmp(cmd, "/copuntie", true) == 0 || strcmp(cmd, "/odvezipolicajca", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if(IsACop(playerid))
{
    /*if(PlayerInfo[playerid][pRank] < 3)
    {
        SendClientMessage(playerid, COLOR_GREY, "   You need Rank 3 or higher to untie people !");
        return 1;
    }*/
    tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "Koriscenje: /copuntie [ID Igraca/Dio Imena]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
    if (ProxDetectorS(8.0, playerid, giveplayerid))
{
    if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "Ne mozete se sami odvezati!"); return 1; }
if(PlayerTied[giveplayerid])
{
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* Odvezao vas je %s.", sendername);
SendClientMessage(giveplayerid, COLOR_WHITE, string);
format(string, sizeof(string), "* Odvezali ste %s-a.", giveplayer);
SendClientMessage(playerid, COLOR_WHITE, string);
GameTextForPlayer(giveplayerid, "~g~Odvezan", 2500, 3);
TogglePlayerControllable(giveplayerid, 1);
TextDrawHideForPlayer(giveplayerid,Text:Poveznaoci);
    PlayerBlind[giveplayerid] = 0;
    format(string, sizeof(string), "* %s je skinuo povez %s-u i uzeo povez.", sendername, giveplayer);
          ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
          Povez[playerid]++;
PlayerTied[giveplayerid] = 0;
format(string, sizeof(string), "* %s je odvezao %s-a.", sendername, giveplayer);
      ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "   Taj igrac nije vezan !");
    return 1;
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "   Igrac nije blizu vas !");
    return 1;
}
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "   Igrac je offline !");
    return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "   Niste Policajac !");
}
}//not connected
return 1;
}

Citat: Nxidza poslato Decembar 24, 2011, 14:50:38 POSLE PODNE
@Master - daj komandu

@Lukas - si ti normalan?Procitaj jos jednom njegov post.

PROCITAJ OMG DAO SAM MU KOMANDU /tie [/vezi] I /untie [/odvez] PROCITAJ MALO BOLJE!!

Citat: [BU]Lukas poslato Decembar 24, 2011, 20:30:41 POSLE PODNE
Citat: Nxidza poslato Decembar 24, 2011, 14:50:38 POSLE PODNE
@Master - daj komandu

@Lukas - si ti normalan?Procitaj jos jednom njegov post.

PROCITAJ OMG DAO SAM MU KOMANDU /tie [/vezi] I /untie [/odvez] PROCITAJ MALO BOLJE!!
Procitaj ti sta je trazio.