[POMOC] Skin posle /uninvite

Započeo Nikola_Soprano, Jun 11, 2013, 15:50:40 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Moja editovana
Detaljan opis problema: kako da namestim da kada kucam /uninvite ili bilo koj lider da se posle postavi skin id 1 a ne CJ-ev skin....
Dio skripte: if(strcmp(cmd, "/uninvite", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /uninvite [ID Igraca/Deo imena]");
return 1;
}
new para1;
para1 = ReturnUser(tmp);
if(PlayerInfo[playerid][pLeader] == 1 && PlayerInfo[para1][pMember] != 1)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 2 && PlayerInfo[para1][pMember] != 2)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 3 && PlayerInfo[para1][pMember] != 3)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 4 && PlayerInfo[para1][pMember] != 4)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 5 && PlayerInfo[para1][pMember] != 5)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 6 && PlayerInfo[para1][pMember] != 6)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");

return 1;
}
if(PlayerInfo[playerid][pLeader] == 7 && PlayerInfo[para1][pMember] != 7)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 8 && PlayerInfo[para1][pMember] != 8)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 9 && PlayerInfo[para1][pMember] != 9)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 10 && PlayerInfo[para1][pMember] != 10)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 11 && PlayerInfo[para1][pMember] != 11)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 12 && PlayerInfo[para1][pMember] != 12)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 13 && PlayerInfo[para1][pMember] != 13)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 14 && PlayerInfo[para1][pMember] != 14)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 15 && PlayerInfo[para1][pMember] != 15)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 16 && PlayerInfo[para1][pMember] != 16)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if (PlayerInfo[playerid][pLeader] >= 1)
{
    if(IsPlayerConnected(para1))
    {
        if(para1 != INVALID_PLAYER_ID)
        {
    if (PlayerInfo[para1][pMember] > 0)
    {
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
printf("AdmCmd: %s je izbacio %s-a.", sendername, giveplayer);
format(string, sizeof(string), "[INFO] {FFFFFF}Izbaceni ste iz organizacije od strane Lidera: %s.", sendername);
SendClientMessage(para1, COLOR_LIGHTBLUE, string);
SendClientMessage(para1, COLOR_LIGHTBLUE, "Sada ste civil.");
                gTeam[para1] = 3;
PlayerInfo[para1][pTeam] = 3;
PlayerInfo[para1][pMember] = 0;
PlayerInfo[para1][pRank] = 0;
PlayerInfo[para1][pChar] = 0;
PlayerInfo[playerid][pTU]=0;
new rand = random(sizeof(CIV));
SetSpawnInfo(para1, gTeam[para1], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerInfo[para1][pModel] = CIV[rand];
MedicBill[para1] = 0;
SpawnPlayer(para1);
format(string, sizeof(string), "[INFO] {FFFFFF}Izbacili ste %s iz vase organizacije.", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "{FFFFFF}[{F81414}BSL-RP{FFFFFF}] Niste ovlasteni da koristite tu komadnu (samo lideri) !");
}
}
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno): /

if(strcmp(cmd, "/uninvite", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /uninvite [ID Igraca/Deo imena]");
return 1;
}
new para1;
para1 = ReturnUser(tmp);
if(PlayerInfo[playerid][pLeader] == 1 && PlayerInfo[para1][pMember] != 1)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 2 && PlayerInfo[para1][pMember] != 2)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 3 && PlayerInfo[para1][pMember] != 3)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 4 && PlayerInfo[para1][pMember] != 4)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 5 && PlayerInfo[para1][pMember] != 5)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 6 && PlayerInfo[para1][pMember] != 6)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");

return 1;
}
if(PlayerInfo[playerid][pLeader] == 7 && PlayerInfo[para1][pMember] != 7)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 8 && PlayerInfo[para1][pMember] != 8)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 9 && PlayerInfo[para1][pMember] != 9)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 10 && PlayerInfo[para1][pMember] != 10)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 11 && PlayerInfo[para1][pMember] != 11)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 12 && PlayerInfo[para1][pMember] != 12)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 13 && PlayerInfo[para1][pMember] != 13)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 14 && PlayerInfo[para1][pMember] != 14)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 15 && PlayerInfo[para1][pMember] != 15)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 16 && PlayerInfo[para1][pMember] != 16)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if (PlayerInfo[playerid][pLeader] >= 1)
{
    if(IsPlayerConnected(para1))
    {
        if(para1 != INVALID_PLAYER_ID)
        {
    if (PlayerInfo[para1][pMember] > 0)
    {
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
printf("AdmCmd: %s je izbacio %s-a.", sendername, giveplayer);
format(string, sizeof(string), "[INFO] {FFFFFF}Izbaceni ste iz organizacije od strane Lidera: %s.", sendername);
SendClientMessage(para1, COLOR_LIGHTBLUE, string);
SendClientMessage(para1, COLOR_LIGHTBLUE, "Sada ste civil.");
                gTeam[para1] = 3;
PlayerInfo[para1][pTeam] = 3;
PlayerInfo[para1][pMember] = 0;
PlayerInfo[para1][pRank] = 0;
PlayerInfo[para1][pChar] = 0;
PlayerInfo[playerid][pTU]=0;
new rand = random(sizeof(CIV));
SetSpawnInfo(para1, gTeam[para1], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerInfo[para1][pModel] = CIV[rand];
MedicBill[para1] = 0;
SpawnPlayer(para1);
                                                        SetPlayerSkin(para1, 1);
format(string, sizeof(string), "[INFO] {FFFFFF}Izbacili ste %s iz vase organizacije.", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "{FFFFFF}[{F81414}BSL-RP{FFFFFF}] Niste ovlasteni da koristite tu komadnu (samo lideri) !");
}
}
return 1;
}


To sto ti je David dao i sam vidis daje random,a evo ako ti ne bude radilo kao sto ti je on stavio,jer da radi ovo pModel ne bi ti uvijek CJ davalo




Balkan Ulice RPG opis servera: Click



-Tutorial za mijesanje ID-ova na vozilima: Click

Nista nije pomoglo, idalje nakon /uninvite je cj-ev skin....

probaj ovako

if(strcmp(cmd, "/uninvite", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /uninvite [ID Igraca/Deo imena]");
return 1;
}
new para1;
para1 = ReturnUser(tmp);
if(PlayerInfo[playerid][pLeader] == 1 && PlayerInfo[para1][pMember] != 1)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 2 && PlayerInfo[para1][pMember] != 2)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 3 && PlayerInfo[para1][pMember] != 3)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 4 && PlayerInfo[para1][pMember] != 4)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 5 && PlayerInfo[para1][pMember] != 5)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 6 && PlayerInfo[para1][pMember] != 6)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");

return 1;
}
if(PlayerInfo[playerid][pLeader] == 7 && PlayerInfo[para1][pMember] != 7)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 8 && PlayerInfo[para1][pMember] != 8)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 9 && PlayerInfo[para1][pMember] != 9)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 10 && PlayerInfo[para1][pMember] != 10)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 11 && PlayerInfo[para1][pMember] != 11)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 12 && PlayerInfo[para1][pMember] != 12)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 13 && PlayerInfo[para1][pMember] != 13)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 14 && PlayerInfo[para1][pMember] != 14)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 15 && PlayerInfo[para1][pMember] != 15)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 16 && PlayerInfo[para1][pMember] != 16)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if (PlayerInfo[playerid][pLeader] >= 1)
{
    if(IsPlayerConnected(para1))
    {
        if(para1 != INVALID_PLAYER_ID)
        {
    if (PlayerInfo[para1][pMember] > 0)
    {
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
printf("AdmCmd: %s je izbacio %s-a.", sendername, giveplayer);
format(string, sizeof(string), "[INFO] {FFFFFF}Izbaceni ste iz organizacije od strane Lidera: %s.", sendername);
SendClientMessage(para1, COLOR_LIGHTBLUE, string);
SendClientMessage(para1, COLOR_LIGHTBLUE, "Sada ste civil.");
                gTeam[para1] = 3;
PlayerInfo[para1][pTeam] = 3;
PlayerInfo[para1][pMember] = 0;
PlayerInfo[para1][pRank] = 0;
PlayerInfo[para1][pChar] = 0;
PlayerInfo[playerid][pTU]=0;
new rand = random(sizeof(CIV));
SetSpawnInfo(para1, gTeam[para1], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerInfo[para1][pModel] = CIV[rand];
MedicBill[para1] = 0;
SpawnPlayer(para1);
                                                        SetPlayerSkin(giveplayer, 1);
format(string, sizeof(string), "[INFO] {FFFFFF}Izbacili ste %s iz vase organizacije.", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "{FFFFFF}[{F81414}BSL-RP{FFFFFF}] Niste ovlasteni da koristite tu komadnu (samo lideri) !");
}
}
return 1;
}
Other Dimension RolePlay | Uskoro
Ukoliko zelite pomoci u razvoju servera, mozete se meni javit na PP/PM!

Probao sam i tako.... Ali nece, jos sinoc sam probao tako...

Citat: Crazyn3ss poslato Jun 12, 2013, 01:23:33 PRE PODNE
probaj ovako

if(strcmp(cmd, "/uninvite", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /uninvite [ID Igraca/Deo imena]");
return 1;
}
new para1;
para1 = ReturnUser(tmp);
if(PlayerInfo[playerid][pLeader] == 1 && PlayerInfo[para1][pMember] != 1)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 2 && PlayerInfo[para1][pMember] != 2)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 3 && PlayerInfo[para1][pMember] != 3)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 4 && PlayerInfo[para1][pMember] != 4)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 5 && PlayerInfo[para1][pMember] != 5)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 6 && PlayerInfo[para1][pMember] != 6)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");

return 1;
}
if(PlayerInfo[playerid][pLeader] == 7 && PlayerInfo[para1][pMember] != 7)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 8 && PlayerInfo[para1][pMember] != 8)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 9 && PlayerInfo[para1][pMember] != 9)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 10 && PlayerInfo[para1][pMember] != 10)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 11 && PlayerInfo[para1][pMember] != 11)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 12 && PlayerInfo[para1][pMember] != 12)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 13 && PlayerInfo[para1][pMember] != 13)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 14 && PlayerInfo[para1][pMember] != 14)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 15 && PlayerInfo[para1][pMember] != 15)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 16 && PlayerInfo[para1][pMember] != 16)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if (PlayerInfo[playerid][pLeader] >= 1)
{
    if(IsPlayerConnected(para1))
    {
        if(para1 != INVALID_PLAYER_ID)
        {
    if (PlayerInfo[para1][pMember] > 0)
    {
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
printf("AdmCmd: %s je izbacio %s-a.", sendername, giveplayer);
format(string, sizeof(string), "[INFO] {FFFFFF}Izbaceni ste iz organizacije od strane Lidera: %s.", sendername);
SendClientMessage(para1, COLOR_LIGHTBLUE, string);
SendClientMessage(para1, COLOR_LIGHTBLUE, "Sada ste civil.");
                gTeam[para1] = 3;
PlayerInfo[para1][pTeam] = 3;
PlayerInfo[para1][pMember] = 0;
PlayerInfo[para1][pRank] = 0;
PlayerInfo[para1][pChar] = 0;
PlayerInfo[playerid][pTU]=0;
new rand = random(sizeof(CIV));
SetSpawnInfo(para1, gTeam[para1], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerInfo[para1][pModel] = CIV[rand];
MedicBill[para1] = 0;
SpawnPlayer(para1);
                                                        SetPlayerSkin(giveplayer, 1);
format(string, sizeof(string), "[INFO] {FFFFFF}Izbacili ste %s iz vase organizacije.", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "{FFFFFF}[{F81414}BSL-RP{FFFFFF}] Niste ovlasteni da koristite tu komadnu (samo lideri) !");
}
}
return 1;
}

Ovako se lideru postavlja taj skin...

Probaj if(strcmp(cmd, "/uninvite", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /uninvite [ID Igraca/Dio Imena]");
return 1;
}
new para1;
para1 = ReturnUser(tmp);
if(PlayerInfo[playerid][pLeader] == 1 && PlayerInfo[para1][pMember] != 1)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 2 && PlayerInfo[para1][pMember] != 2)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 3 && PlayerInfo[para1][pMember] != 3)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 4 && PlayerInfo[para1][pMember] != 4)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 5 && PlayerInfo[para1][pMember] != 5)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 6 && PlayerInfo[para1][pMember] != 6)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 7 && PlayerInfo[para1][pMember] != 7)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 8 && PlayerInfo[para1][pMember] != 8)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 9 && PlayerInfo[para1][pMember] != 9)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 10 && PlayerInfo[para1][pMember] != 10)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 11 && PlayerInfo[para1][pMember] != 11)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 12 && PlayerInfo[para1][pMember] != 12)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 13 && PlayerInfo[para1][pMember] != 13)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 14 && PlayerInfo[para1][pMember] != 14)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 15 && PlayerInfo[para1][pMember] != 15)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 16 && PlayerInfo[para1][pMember] != 16)
{
    SendClientMessage(playerid, COLOR_GRAD2, "Pristup Odbijen!");
return 1;
}
if (PlayerInfo[playerid][pLeader] >= 1)
{
    if(IsPlayerConnected(para1))
    {
        if(para1 != INVALID_PLAYER_ID)
        {
    if (PlayerInfo[para1][pMember] > 0)
    {
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
printf("AdmCmd: %s je izbacio %s-a.", sendername, giveplayer);
format(string, sizeof(string), "* Izbaceni ste iz organizacije od strane Lidera: %s.", sendername);
SendClientMessage(para1, COLOR_WHITE, string);
SendClientMessage(para1, COLOR_WHITE, "* Sada ste civil.");
                gTeam[para1] = 3;
PlayerInfo[para1][pTeam] = 3;
PlayerInfo[para1][pMember] = 0;
PlayerInfo[para1][pRank] = 0;
new randomskin;
if(PlayerInfo[para1][pSex] == 1) { randomskin = random(sizeof(CivMalePeds)); }
else if(PlayerInfo[para1][pSex] == 1) { randomskin = random(sizeof(CivFemalePeds)); }
else { randomskin = random(sizeof(CivMalePeds)); }
SetPlayerSkin(para1, randomskin);
PlayerInfo[para1][pChar] = randomskin;
MedicBill[para1] = 0;
SpawnPlayer(para1);
format(string, sizeof(string), "   Izbaceni ste iz organizacije.", giveplayer);
SendClientMessage(playerid, COLOR_WHITE, string);
}
}
}//not connected
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "   Niste ovlasteni da koristite tu komadnu(samo lideri!!)!");
}
}
return 1;
}