[Pomoc] samo ulaz lvl 2

Započeo [GU:RP] ivica 156, Januar 03, 2012, 23:27:27 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim:MojMod
Detaljan opis problema:zanima me kako da u komandu /invite bude da samo igrac sam lvl bude invitan/pozvan,evo komande
Dio skripte:CMD:invite(playerid, params[])
      {
       new sendername[MAX_PLAYER_NAME];
      new giveplayer[MAX_PLAYER_NAME];
      new idx;
       new para1;
       new ftext[20];
       new string[128];
       para1 = ReturnUser(temp);
       if(IsPlayerConnected(playerid))
       {
         temp = strtok(params, idx);
         if(!strlen(temp))
         {
            SendClientMessage(playerid, COLOR_GRAD2, "{168BFF}INFO: {959561} /invite {959561}[ID/DioImena] {838361}");
            return 1;
         }
         if (PlayerInfo[playerid][Lider] >= 1)
         {
             if(IsPlayerConnected(para1))
             {
                 if(para1 != INVALID_PLAYER_ID)
                 {
                   if (PlayerInfo[para1][Clan] == 0 || PlayerInfo[para1][Lider] == 0)
                   {
                     if(PlayerInfo[playerid][Lider] == 1) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Policija"; ChosenSkin[para1] = 280; SetPlayerSkin(para1, 280); }
                       else if(PlayerInfo[playerid][Lider] == 2) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Federalni Biro"; ChosenSkin[para1] = 286; SetPlayerSkin(para1, 286); }
                       else if(PlayerInfo[playerid][Lider] == 3) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Ballas"; ChosenSkin[para1] = 285; SetPlayerSkin(para1, 285); }
                       else if(PlayerInfo[playerid][Lider] == 4) { PlayerInfo[para1][pTeam] = 1; gTeam[para1] = 1; ftext = "Bolnica"; ChosenSkin[para1] = 70; SetPlayerSkin(para1, 70); }
                       else if(PlayerInfo[playerid][Lider] == 5) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Corleone's"; ChosenSkin[para1] = 125; SetPlayerSkin(para1, 125); }
                       else if(PlayerInfo[playerid][Lider] == 6) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Terror Squad Crew"; ChosenSkin[para1] = 123; SetPlayerSkin(para1, 123); }
                       else if(PlayerInfo[playerid][Lider] == 7) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Gradonacelnik"; ChosenSkin[para1] = 270; SetPlayerSkin(para1, 270); }
                       else if(PlayerInfo[playerid][Lider] == 8) { PlayerInfo[para1][pTeam] = 10; gTeam[para1] = 12; ftext = "Grove Street Family"; ChosenSkin[para1] = 186; SetPlayerSkin(para1, 186); }
                       else if(PlayerInfo[playerid][Lider] == 9) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "RC Novinari"; ChosenSkin[para1] = 187; SetPlayerSkin(para1, 187); }
                       else if(PlayerInfo[playerid][Lider] == 10) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Taxy Company"; ChosenSkin[para1] = 255; SetPlayerSkin(para1, 255); }
                       else if(PlayerInfo[playerid][Lider] == 11) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Hitman Agencija"; ChosenSkin[para1] = 217; SetPlayerSkin(para1, 217); }
                       else if(PlayerInfo[playerid][Lider] == 12) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Crips Family"; ChosenSkin[para1] = 110; SetPlayerSkin(para1, 110); }
                       else if(PlayerInfo[playerid][Lider] == 13) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Street Racers"; ChosenSkin[para1] = 29; SetPlayerSkin(para1, 29); }
                        else if(PlayerInfo[playerid][Lider] == 14) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Rusian Mafia"; ChosenSkin[para1] = 112; SetPlayerSkin(para1, 112); }
                         else if(PlayerInfo[playerid][Lider] == 15) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "La Costra Nostra"; ChosenSkin[para1] = 116; SetPlayerSkin(para1, 116); }
                          else if(PlayerInfo[playerid][Lider] == 16) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Specijalne Jedinice"; ChosenSkin[para1] = 287; SetPlayerSkin(para1, 287); }
                          else { return 1; }
                          GetPlayerName(para1, giveplayer, sizeof(giveplayer));
                     GetPlayerName(playerid, sendername, sizeof(sendername));
                     PlayerInfo[para1][Clan] = PlayerInfo[playerid][Lider];
                     PlayerInfo[para1][pRank] = 1;
                     printf("%s je pozvao igraca %s da se prikljuci %s.", sendername, giveplayer, ftext);
                     format(string, sizeof(string), "Prikljucio si se: %s, pozvan si od Lidera %s!", ftext, sendername);
                     SendClientMessage(para1, COLOR_LIGHTBLUE, string);
                     format(string, sizeof(string), "Pozvao si igraca %s da se pridruzi %s!", giveplayer,ftext);
                     SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                     SetPlayerInterior(para1,0);
                     new rand = random(sizeof(gInviteSpawns));
                     SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
                     SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
                     SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
                     SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
                     TogglePlayerControllable(para1, 0);
                      SelectChar[para1] = 255;
                      SelectCharID[para1] = PlayerInfo[para1][Clan];
                      SelectCharPlace[para1] = 1;
                        OdjecaID1[para1] = 1;
                      PlayerInfo[para1][pModel] = ChosenSkin[para1];
                      PlayerInfo[para1][pChar] = ChosenSkin[para1];
                      SendClientMessage(para1, COLOR_LIGHTRED, "* Kucajte next da birate zeljeni skin.");
                      SendClientMessage(para1, COLOR_LIGHTRED, "* Kada zavrsite sa odabirom skina kucajte done.");
                      }
               }
            }//not connected
         }
         else
         {
            SendClientMessage(playerid, COLOR_GRAD1, "(greska) Igrac je vec u nekoj organizaciji!");
         }
      }
      return 1;
   }
Neke slike/video za lakse dobivanje pomoci(neobavezno):


Ti mislis ono da igraci sa lvl 1 nemogu u nijednu org i bandu   ;) ;) ;)

Samo dodas if (PlayerInfo[para1][pLevel] < 2) return 0;
Mislim da je tako,nisam dugo otvarao pawno pa sam vec i zaboravio...
Poslednja Izmena: Januar 03, 2012, 23:56:48 POSLE PODNE od Mario_

e mario di dodam to ispod bilo cega ili ispod player connect?

Citat: ivica 156 poslato Januar 04, 2012, 00:03:13 PRE PODNE
e mario di dodam to ispod bilo cega ili ispod player connect?

Ne , dodaš u komandu.
"I'm a loser and a user so I don't need no accuser" - Billie Joe Armstrong

jel moze ispod ovoga
if (PlayerInfo[para1][Clan] == 0 || PlayerInfo[para1][Lider] == 0)
                   {
da dodam komandu

nemoze sve na gotovo,procitaj malo na wiki kako se radi ja sam ti dao sta da ubacis ti nadji gde...
P.S. Da li si ti imao server preprosle godine na leto sa Domagojem?

? ja ubacim to komanda ne reaguje pise da je nema kao?

joj,joj,joj
probaj ovako:
CMD:invite(playerid, params[])
      {
       new sendername[MAX_PLAYER_NAME];
      new giveplayer[MAX_PLAYER_NAME];
      new idx;
       new para1;
       new ftext[20];
       new string[128];
       para1 = ReturnUser(temp);
       if(IsPlayerConnected(playerid))
       {
         temp = strtok(params, idx);
         if(!strlen(temp))
         {
            SendClientMessage(playerid, COLOR_GRAD2, "{168BFF}INFO: {959561} /invite {959561}[ID/DioImena] {838361}");
            return 1;
         }
         if (PlayerInfo[playerid][Lider] >= 1)
         {
         if (PlayerInfo[para1][pLevel] >= 2)
         {
             if(IsPlayerConnected(para1))
             {
                 if(para1 != INVALID_PLAYER_ID)
                 {
                   if (PlayerInfo[para1][Clan] == 0 || PlayerInfo[para1][Lider] == 0)
                   {
                     if(PlayerInfo[playerid][Lider] == 1) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Policija"; ChosenSkin[para1] = 280; SetPlayerSkin(para1, 280); }
                       else if(PlayerInfo[playerid][Lider] == 2) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Federalni Biro"; ChosenSkin[para1] = 286; SetPlayerSkin(para1, 286); }
                       else if(PlayerInfo[playerid][Lider] == 3) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Ballas"; ChosenSkin[para1] = 285; SetPlayerSkin(para1, 285); }
                       else if(PlayerInfo[playerid][Lider] == 4) { PlayerInfo[para1][pTeam] = 1; gTeam[para1] = 1; ftext = "Bolnica"; ChosenSkin[para1] = 70; SetPlayerSkin(para1, 70); }
                       else if(PlayerInfo[playerid][Lider] == 5) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Corleone's"; ChosenSkin[para1] = 125; SetPlayerSkin(para1, 125); }
                       else if(PlayerInfo[playerid][Lider] == 6) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Terror Squad Crew"; ChosenSkin[para1] = 123; SetPlayerSkin(para1, 123); }
                       else if(PlayerInfo[playerid][Lider] == 7) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Gradonacelnik"; ChosenSkin[para1] = 270; SetPlayerSkin(para1, 270); }
                       else if(PlayerInfo[playerid][Lider] ==  { PlayerInfo[para1][pTeam] = 10; gTeam[para1] = 12; ftext = "Grove Street Family"; ChosenSkin[para1] = 186; SetPlayerSkin(para1, 186); }
                       else if(PlayerInfo[playerid][Lider] == 9) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "RC Novinari"; ChosenSkin[para1] = 187; SetPlayerSkin(para1, 187); }
                       else if(PlayerInfo[playerid][Lider] == 10) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Taxy Company"; ChosenSkin[para1] = 255; SetPlayerSkin(para1, 255); }
                       else if(PlayerInfo[playerid][Lider] == 11) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Hitman Agencija"; ChosenSkin[para1] = 217; SetPlayerSkin(para1, 217); }
                       else if(PlayerInfo[playerid][Lider] == 12) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Crips Family"; ChosenSkin[para1] = 110; SetPlayerSkin(para1, 110); }
                       else if(PlayerInfo[playerid][Lider] == 13) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Street Racers"; ChosenSkin[para1] = 29; SetPlayerSkin(para1, 29); }
                        else if(PlayerInfo[playerid][Lider] == 14) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Rusian Mafia"; ChosenSkin[para1] = 112; SetPlayerSkin(para1, 112); }
                         else if(PlayerInfo[playerid][Lider] == 15) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "La Costra Nostra"; ChosenSkin[para1] = 116; SetPlayerSkin(para1, 116); }
                          else if(PlayerInfo[playerid][Lider] == 16) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Specijalne Jedinice"; ChosenSkin[para1] = 287; SetPlayerSkin(para1, 287); }
                          else { return 1; }
                          GetPlayerName(para1, giveplayer, sizeof(giveplayer));
                     GetPlayerName(playerid, sendername, sizeof(sendername));
                     PlayerInfo[para1][Clan] = PlayerInfo[playerid][Lider];
                     PlayerInfo[para1][pRank] = 1;
                     printf("%s je pozvao igraca %s da se prikljuci %s.", sendername, giveplayer, ftext);
                     format(string, sizeof(string), "Prikljucio si se: %s, pozvan si od Lidera %s!", ftext, sendername);
                     SendClientMessage(para1, COLOR_LIGHTBLUE, string);
                     format(string, sizeof(string), "Pozvao si igraca %s da se pridruzi %s!", giveplayer,ftext);
                     SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                     SetPlayerInterior(para1,0);
                     new rand = random(sizeof(gInviteSpawns));
                     SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
                     SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
                     SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
                     SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
                     TogglePlayerControllable(para1, 0);
                      SelectChar[para1] = 255;
                      SelectCharID[para1] = PlayerInfo[para1][Clan];
                      SelectCharPlace[para1] = 1;
                        OdjecaID1[para1] = 1;
                      PlayerInfo[para1][pModel] = ChosenSkin[para1];
                      PlayerInfo[para1][pChar] = ChosenSkin[para1];
                      SendClientMessage(para1, COLOR_LIGHTRED, "* Kucajte next da birate zeljeni skin.");
                      SendClientMessage(para1, COLOR_LIGHTRED, "* Kada zavrsite sa odabirom skina kucajte done.");
                      }
               }
            }
}//not connected
         }
         else
         {
            SendClientMessage(playerid, COLOR_GRAD1, "(greska) Igrac je vec u nekoj organizaciji!");
         }
      }
      return 1;
   }

mislim da ce radit

ne radi pise da je pawno prestao da radi ?

a neznam,lepo sam reko da nisam dugo otvorio pawno,izvini....Pokusacu sutra sad mi se vec spava malo,,...
Jesi li ti imao server preprosle godine na letoooo? Sa domagojem sinkom,ako jesi reci mi xd

Evo samo sam dodao ono sto je nedostajalo kod Maria (mislim na zagrade,nisam nista pipao sto se tice komande)

CMD:invite(playerid, params[])
      {
       new sendername[MAX_PLAYER_NAME];
      new giveplayer[MAX_PLAYER_NAME];
      new idx;
       new para1;
       new ftext[20];
       new string[128];
       para1 = ReturnUser(temp);
       if(IsPlayerConnected(playerid))
       {
         temp = strtok(params, idx);
         if(!strlen(temp))
         {
            SendClientMessage(playerid, COLOR_GRAD2, "{168BFF}INFO: {959561} /invite {959561}[ID/DioImena] {838361}");
            return 1;
         }
         if (PlayerInfo[playerid][Lider] >= 1)
         {
         if (PlayerInfo[para1][pLevel] >= 2)
         {
             if(IsPlayerConnected(para1))
             {
                 if(para1 != INVALID_PLAYER_ID)
                 {
                   if (PlayerInfo[para1][Clan] == 0 || PlayerInfo[para1][Lider] == 0)
                   {
                     if(PlayerInfo[playerid][Lider] == 1) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Policija"; ChosenSkin[para1] = 280; SetPlayerSkin(para1, 280); }
                       else if(PlayerInfo[playerid][Lider] == 2) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Federalni Biro"; ChosenSkin[para1] = 286; SetPlayerSkin(para1, 286); }
                       else if(PlayerInfo[playerid][Lider] == 3) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Ballas"; ChosenSkin[para1] = 285; SetPlayerSkin(para1, 285); }
                       else if(PlayerInfo[playerid][Lider] == 4) { PlayerInfo[para1][pTeam] = 1; gTeam[para1] = 1; ftext = "Bolnica"; ChosenSkin[para1] = 70; SetPlayerSkin(para1, 70); }
                       else if(PlayerInfo[playerid][Lider] == 5) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Corleone's"; ChosenSkin[para1] = 125; SetPlayerSkin(para1, 125); }
                       else if(PlayerInfo[playerid][Lider] == 6) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Terror Squad Crew"; ChosenSkin[para1] = 123; SetPlayerSkin(para1, 123); }
                       else if(PlayerInfo[playerid][Lider] == 7) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Gradonacelnik"; ChosenSkin[para1] = 270; SetPlayerSkin(para1, 270); }
                       else if(PlayerInfo[playerid][Lider] ==  { PlayerInfo[para1][pTeam] = 10; gTeam[para1] = 12; ftext = "Grove Street Family"; ChosenSkin[para1] = 186; SetPlayerSkin(para1, 186); }
                       else if(PlayerInfo[playerid][Lider] == 9) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "RC Novinari"; ChosenSkin[para1] = 187; SetPlayerSkin(para1, 187); }
                       else if(PlayerInfo[playerid][Lider] == 10) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Taxy Company"; ChosenSkin[para1] = 255; SetPlayerSkin(para1, 255); }
                       else if(PlayerInfo[playerid][Lider] == 11) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Hitman Agencija"; ChosenSkin[para1] = 217; SetPlayerSkin(para1, 217); }
                       else if(PlayerInfo[playerid][Lider] == 12) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Crips Family"; ChosenSkin[para1] = 110; SetPlayerSkin(para1, 110); }
                       else if(PlayerInfo[playerid][Lider] == 13) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Street Racers"; ChosenSkin[para1] = 29; SetPlayerSkin(para1, 29); }
                        else if(PlayerInfo[playerid][Lider] == 14) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Rusian Mafia"; ChosenSkin[para1] = 112; SetPlayerSkin(para1, 112); }
                         else if(PlayerInfo[playerid][Lider] == 15) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "La Costra Nostra"; ChosenSkin[para1] = 116; SetPlayerSkin(para1, 116); }
                          else if(PlayerInfo[playerid][Lider] == 16) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Specijalne Jedinice"; ChosenSkin[para1] = 287; SetPlayerSkin(para1, 287); }
                          else { return 1; }
                          GetPlayerName(para1, giveplayer, sizeof(giveplayer));
                     GetPlayerName(playerid, sendername, sizeof(sendername));
                     PlayerInfo[para1][Clan] = PlayerInfo[playerid][Lider];
                     PlayerInfo[para1][pRank] = 1;
                     printf("%s je pozvao igraca %s da se prikljuci %s.", sendername, giveplayer, ftext);
                     format(string, sizeof(string), "Prikljucio si se: %s, pozvan si od Lidera %s!", ftext, sendername);
                     SendClientMessage(para1, COLOR_LIGHTBLUE, string);
                     format(string, sizeof(string), "Pozvao si igraca %s da se pridruzi %s!", giveplayer,ftext);
                     SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                     SetPlayerInterior(para1,0);
                     new rand = random(sizeof(gInviteSpawns));
                     SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
                     SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
                     SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
                     SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
                     TogglePlayerControllable(para1, 0);
                      SelectChar[para1] = 255;
                      SelectCharID[para1] = PlayerInfo[para1][Clan];
                      SelectCharPlace[para1] = 1;
                        OdjecaID1[para1] = 1;
                      PlayerInfo[para1][pModel] = ChosenSkin[para1];
                      PlayerInfo[para1][pChar] = ChosenSkin[para1];
                      SendClientMessage(para1, COLOR_LIGHTRED, "* Kucajte next da birate zeljeni skin.");
                      SendClientMessage(para1, COLOR_LIGHTRED, "* Kada zavrsite sa odabirom skina kucajte done.");
                      }
               }
            }
}//not connected
         }
         else
         {
            SendClientMessage(playerid, COLOR_GRAD1, "(greska) Igrac je vec u nekoj organizaciji!");
         }
       }
     }
      return 1;
   }


CMD:invite(playerid, params[])
      {
       new sendername[MAX_PLAYER_NAME];
      new giveplayer[MAX_PLAYER_NAME];
      new idx;
       new para1;
       new ftext[20];
       new string[128];
       para1 = ReturnUser(temp);
       if(IsPlayerConnected(playerid))
       {
         temp = strtok(params, idx);
         if(!strlen(temp))
         {
            SendClientMessage(playerid, COLOR_GRAD2, "{168BFF}INFO: {959561} /invite {959561}[ID/DioImena] {838361}");
            return 1;
         }
if (PlayerInfo[playerid][pLeader] >= 1)
{
    if(IsPlayerConnected(para1))
    {
if(PlayerInfo[para1][pLevel] < 2)
{
SendClientMessage(playerid, COLOR_GREY, "(greska)Igrac mora biti minimum lvl 2! ");
return 1;
}
        if(para1 != INVALID_PLAYER_ID)
        {
                   if (PlayerInfo[para1][Clan] == 0 || PlayerInfo[para1][Lider] == 0)
                   {
                     if(PlayerInfo[playerid][Lider] == 1) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Policija"; ChosenSkin[para1] = 280; SetPlayerSkin(para1, 280); }
                       else if(PlayerInfo[playerid][Lider] == 2) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Federalni Biro"; ChosenSkin[para1] = 286; SetPlayerSkin(para1, 286); }
                       else if(PlayerInfo[playerid][Lider] == 3) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Ballas"; ChosenSkin[para1] = 285; SetPlayerSkin(para1, 285); }
                       else if(PlayerInfo[playerid][Lider] == 4) { PlayerInfo[para1][pTeam] = 1; gTeam[para1] = 1; ftext = "Bolnica"; ChosenSkin[para1] = 70; SetPlayerSkin(para1, 70); }
                       else if(PlayerInfo[playerid][Lider] == 5) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Corleone's"; ChosenSkin[para1] = 125; SetPlayerSkin(para1, 125); }
                       else if(PlayerInfo[playerid][Lider] == 6) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Terror Squad Crew"; ChosenSkin[para1] = 123; SetPlayerSkin(para1, 123); }
                       else if(PlayerInfo[playerid][Lider] == 7) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Gradonacelnik"; ChosenSkin[para1] = 270; SetPlayerSkin(para1, 270); }
                       else if(PlayerInfo[playerid][Lider] == Cool { PlayerInfo[para1][pTeam] = 10; gTeam[para1] = 12; ftext = "Grove Street Family"; ChosenSkin[para1] = 186; SetPlayerSkin(para1, 186); }
                       else if(PlayerInfo[playerid][Lider] == 9) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "RC Novinari"; ChosenSkin[para1] = 187; SetPlayerSkin(para1, 187); }
                       else if(PlayerInfo[playerid][Lider] == 10) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Taxy Company"; ChosenSkin[para1] = 255; SetPlayerSkin(para1, 255); }
                       else if(PlayerInfo[playerid][Lider] == 11) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Hitman Agencija"; ChosenSkin[para1] = 217; SetPlayerSkin(para1, 217); }
                       else if(PlayerInfo[playerid][Lider] == 12) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Crips Family"; ChosenSkin[para1] = 110; SetPlayerSkin(para1, 110); }
                       else if(PlayerInfo[playerid][Lider] == 13) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Street Racers"; ChosenSkin[para1] = 29; SetPlayerSkin(para1, 29); }
                        else if(PlayerInfo[playerid][Lider] == 14) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Rusian Mafia"; ChosenSkin[para1] = 112; SetPlayerSkin(para1, 112); }
                         else if(PlayerInfo[playerid][Lider] == 15) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "La Costra Nostra"; ChosenSkin[para1] = 116; SetPlayerSkin(para1, 116); }
                          else if(PlayerInfo[playerid][Lider] == 16) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Specijalne Jedinice"; ChosenSkin[para1] = 287; SetPlayerSkin(para1, 287); }
                          else { return 1; }
                          GetPlayerName(para1, giveplayer, sizeof(giveplayer));
                     GetPlayerName(playerid, sendername, sizeof(sendername));
                     PlayerInfo[para1][Clan] = PlayerInfo[playerid][Lider];
                     PlayerInfo[para1][pRank] = 1;
                     printf("%s je pozvao igraca %s da se prikljuci %s.", sendername, giveplayer, ftext);
                     format(string, sizeof(string), "Prikljucio si se: %s, pozvan si od Lidera %s!", ftext, sendername);
                     SendClientMessage(para1, COLOR_LIGHTBLUE, string);
                     format(string, sizeof(string), "Pozvao si igraca %s da se pridruzi %s!", giveplayer,ftext);
                     SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                     SetPlayerInterior(para1,0);
                     new rand = random(sizeof(gInviteSpawns));
                     SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
                     SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
                     SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
                     SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
                     TogglePlayerControllable(para1, 0);
                      SelectChar[para1] = 255;
                      SelectCharID[para1] = PlayerInfo[para1][Clan];
                      SelectCharPlace[para1] = 1;
                        OdjecaID1[para1] = 1;
                      PlayerInfo[para1][pModel] = ChosenSkin[para1];
                      PlayerInfo[para1][pChar] = ChosenSkin[para1];
                      SendClientMessage(para1, COLOR_LIGHTRED, "* Kucajte next da birate zeljeni skin.");
                      SendClientMessage(para1, COLOR_LIGHTRED, "* Kada zavrsite sa odabirom skina kucajte done.");
                      }
               }
            }//not connected
         }
         else
         {
            SendClientMessage(playerid, COLOR_GRAD1, "(greska) Igrac je vec u nekoj organizaciji!");
         }
      }
      return 1;
   }


Svoj kod stavljaj u