[Pomoc] hitno /invite

Započeo [GU:RP] ivica 156, Decembar 17, 2011, 22:04:20 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:Moj mod
Detaljan opis problema:ovako imam invite rijesio sam neke stvari u vezi toga e sada kad idem /invite nekog invita mene a ne igraca a drugi put kad idem /invite onda invita
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 = "The Vincie's Family"; ChosenSkin[para1] = 116; SetPlayerSkin(para1, 116); }
                         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 organizaciji/mafiji/bandi: %s, pozvao te lider %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):