[Pomoc] dodam u invite 17 org nece invitat

Započeo [GU:RP] ivica 156, Februar 18, 2012, 01:19:56 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:cyber
Detaljan opis problema:imam /invite i sada sam dodao 17 kao lidera za bandu i odem na srv nece da invita ni u jednu i pobrisem to za 17 po redu radi invite evo komande
if(strcmp(cmd, "/invite", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koristi: /invite [ID/Dio Imena]");
return 1;
}
new para1;
new ftext[20];
para1 = ReturnUser(tmp);
if (PlayerInfo[playerid][Lider] >= 1)
{
    if(IsPlayerConnected(para1))
    {
        if(para1 != INVALID_PLAYER_ID)
        {
    if (gTeam[para1]==TEAM_GREEN && PlayerInfo[para1][Clan] == 0 && PlayerInfo[para1][pFMember] == 255)
    {
        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's Gang"; ChosenSkin[para1] = 102; SetPlayerSkin(para1, 102); }
        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 = "Ice Cold Family"; ChosenSkin[para1] = 125; SetPlayerSkin(para1, 125); }
        else if(PlayerInfo[playerid][Lider] == 6) { PlayerInfo[para1][pTeam] = 6; gTeam[para1] = 6; ftext = "Terror Squad Crew"; ChosenSkin[para1] = 114; SetPlayerSkin(para1, 114); }
        else if(PlayerInfo[playerid][Lider] == 7) { PlayerInfo[para1][pTeam] = 6; gTeam[para1] = 6; ftext = "Gradonacelnik"; ChosenSkin[para1] = 171; SetPlayerSkin(para1, 171); }
        else if(PlayerInfo[playerid][Lider] == 8) { PlayerInfo[para1][pTeam] = 10; gTeam[para1] = 12; ftext = "Glen Park Family"; ChosenSkin[para1] = 105; SetPlayerSkin(para1, 105); }
        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 Agency"; ChosenSkin[para1] = 217; SetPlayerSkin(para1, 217); }
        else if(PlayerInfo[playerid][Lider] == 12) { PlayerInfo[para1][pTeam] = 1; gTeam[para1] = 1; ftext = "Wu Tang Mafia"; ChosenSkin[para1] = 123; SetPlayerSkin(para1, 123); }
        else if(PlayerInfo[playerid][Lider] == 13) { PlayerInfo[para1][pTeam] = 1; gTeam[para1] = 1; ftext = "NGR"; ChosenSkin[para1] = 29; SetPlayerSkin(para1, 29); }
        else if(PlayerInfo[playerid][Lider] == 14) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Russian Mafia"; ChosenSkin[para1] = 111; SetPlayerSkin(para1, 111); }
        else if(PlayerInfo[playerid][Lider] == 15) { PlayerInfo[para1][pTeam] = 15; gTeam[para1] = 15; ftext = "La Costra Nostra"; ChosenSkin[para1] = 116; SetPlayerSkin(para1, 116); }
        else if(PlayerInfo[playerid][Lider] == 16) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Specijalne Jedinice"; ChosenSkin[para1] = 287; SetPlayerSkin(para1, 287); }
        else if(PlayerInfo[playerid][Lider] == 17) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Colinas Gang"; ChosenSkin[para1] = 109; SetPlayerSkin(para1, 109); }
        else { return 1; }
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
PlayerInfo[para1][Clan] = PlayerInfo[playerid][Lider];
PlayerInfo[para1][pRank] = 1;
printf("AdmCmd: %s je invitao %s da se pridruzi %s.", sendername, giveplayer, ftext);
format(string, sizeof(string), "Pridruzili ste se %s od lidera %s", ftext, sendername);
SendClientMessage(para1, SVETLOPLAVA, string);
format(string, sizeof(string), "Pozvali ste %s da se pridruzi %s.", giveplayer,ftext);
SendClientMessage(playerid, SVETLOPLAVA, 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, "* Koristi next da biras skin.");
                      SendClientMessage(para1, COLOR_LIGHTRED, "* Kada odaberes koristi done.");
}
else
{
    }
}
}//not connected
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "   Nemate prava koristiti tu komandu!");
}
}
return 1;
}

kada dodam ovo
                       else if(PlayerInfo[playerid][Lider] == 17) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Colinas Gang"; ChosenSkin[para1] = 109; SetPlayerSkin(para1, 109); } ne radi cijeli invite pobrisem to u invite invite radi
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):