16.10.2016, 00:39
O problema esta nas linha comentadas no cуdigo abaixo, se eu descomentar a linha do (PlayerInfo[playerid][pMembro] = PlayerInfo[InviteOffer[playerid]][pLider]) e comentar a linha do (PlayerInfo[playerid][pMembro] = PlayerInfo[InviteOffer[playerid]][pMembro]), somente o convite que o lнder fizer pro player vai dar certo, ou se fizer ao contrario, somente o convite que o sub-lider fizer vai dar certo quando o player aceitar. Preciso de ajuda para fazer com que os dois consigam convidar e o player consiga aceitar corretamente independente de quem esteja convidando, seja o lider ou o sub-lider. Segue o cуdigo completo abaixo:
PHP код:
if(strcmp(cmd,"/aceitar",true)==0)
{
if(IsPlayerConnected(playerid))
{
new x_Emprego[32];
x_Emprego = strtok(cmdtext, idx);
if(!strlen(x_Emprego))
{
SendClientMessage(playerid, COLOR_WHITE, "|_______________ Aceitar _______________A");
SendClientMessage(playerid, COLOR_WHITE, "Use: aceitar [nome]");
SendClientMessage(playerid, COLOR_GREY, "Nomes Validos: drogas, Reparo, Advogado, seguranзa, convite, aovivo, Refill , Assalto, Convite");
SendClientMessage(playerid, COLOR_GREY, "Nomes Validos: Carro, Multa ,divorcio, mendigo, blindagem, Dinamite");
return 1;
}
if(strcmp(x_Emprego,"convite",true) == 0)
{
if(InviteOffer[playerid] < 999)
{
if(IsPlayerConnected(InviteOffer[playerid]))
{
if(PlayerInfo[playerid][pEmprego] > 1)
{
SendClientMessage(playerid, COLOR_YELLOW, "Voce possui um emprego /sairdoemprego.");
return 1;
}
if(convidado[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo foi convidado para nenhuma organizaзгo.");
return 1;
}
skincop[playerid] = GetPlayerSkin(playerid);
if(PlayerInfo[InviteOffer[playerid]][pLider] == 1) { SetSpawnInfo(playerid, 2, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; }
else if(PlayerInfo[InviteOffer[playerid]][pLider] == 2) { SetSpawnInfo(playerid, 2, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; }
else if(PlayerInfo[InviteOffer[playerid]][pLider] == 3) { SetSpawnInfo(playerid, 2, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; }
else if(PlayerInfo[InviteOffer[playerid]][pLider] == 4) { SetSpawnInfo(playerid, 2, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; }
else if(PlayerInfo[InviteOffer[playerid]][pLider] == 5) { SetSpawnInfo(playerid, 5, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
else if(PlayerInfo[InviteOffer[playerid]][pLider] == 6) { SetSpawnInfo(playerid, 5, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
else if(PlayerInfo[InviteOffer[playerid]][pLider] == 7) { SetSpawnInfo(playerid, 2, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; }
else if(PlayerInfo[InviteOffer[playerid]][pLider] == 8) { SetSpawnInfo(playerid, 10, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 10; gTeam[playerid] = 10; }
else if(PlayerInfo[InviteOffer[playerid]][pLider] == 9) { SetSpawnInfo(playerid, 10, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 10; gTeam[playerid] = 10; }
else if(PlayerInfo[InviteOffer[playerid]][pLider] == 10) { SetSpawnInfo(playerid, 10, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 10; gTeam[playerid] = 10; }
else if(PlayerInfo[InviteOffer[playerid]][pLider] == 11) { SetSpawnInfo(playerid, 5, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
else if(PlayerInfo[InviteOffer[playerid]][pLider] == 12) { SetSpawnInfo(playerid, 2, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; }
else if(PlayerInfo[InviteOffer[playerid]][pLider] == 13) { SetSpawnInfo(playerid, 2, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; }
else if(PlayerInfo[InviteOffer[playerid]][pLider] == 14) { SetSpawnInfo(playerid, 10, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 10; gTeam[playerid] = 10; }
else if(PlayerInfo[InviteOffer[playerid]][pLider] == 15) { SetSpawnInfo(playerid, 5, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
else if(PlayerInfo[InviteOffer[playerid]][pLider] == 16) { SetSpawnInfo(playerid, 5, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
else if(PlayerInfo[InviteOffer[playerid]][pLider] == 17) { SetSpawnInfo(playerid, 2, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; }
else if(PlayerInfo[InviteOffer[playerid]][pLider] == 18) { SetSpawnInfo(playerid, 5, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
else if(PlayerInfo[InviteOffer[playerid]][pLider] == 19) { SetSpawnInfo(playerid, 5, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
else if(PlayerInfo[InviteOffer[playerid]][pLider] == 20) { SetSpawnInfo(playerid, 5, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
else if(PlayerInfo[InviteOffer[playerid]][pLider] == 21) { SetSpawnInfo(playerid, 5, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
else if(PlayerInfo[InviteOffer[playerid]][pLider] == 22) { SetSpawnInfo(playerid, 5, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
else if(PlayerInfo[InviteOffer[playerid]][pLider] == 23) { SetSpawnInfo(playerid, 5, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
else if(PlayerInfo[InviteOffer[playerid]][pLider] == 24) { SetSpawnInfo(playerid, 5, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
else if(PlayerInfo[InviteOffer[playerid]][pLider] == 25) { SetSpawnInfo(playerid, 2, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; }
else if(PlayerInfo[InviteOffer[playerid]][pLider] == 26) { SetSpawnInfo(playerid, 10, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 10; gTeam[playerid] = 10; }
else if(PlayerInfo[InviteOffer[playerid]][pLider] == 27) { SetSpawnInfo(playerid, 5, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
else if(PlayerInfo[InviteOffer[playerid]][pLider] == 28) { SetSpawnInfo(playerid, 5, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
else if(PlayerInfo[InviteOffer[playerid]][pLider] == 29) { SetSpawnInfo(playerid, 5, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
else if(PlayerInfo[InviteOffer[playerid]][pLider] == 30) { SetSpawnInfo(playerid, 5, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
//sub-lider
else if(PlayerInfo[InviteOffer[playerid]][pMembro] == 1) { if(PlayerInfo[InviteOffer[playerid]][pCargo] == 5) { SetSpawnInfo(playerid, 2, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; } }//governo
else if(PlayerInfo[InviteOffer[playerid]][pMembro] == 2) { if(PlayerInfo[InviteOffer[playerid]][pCargo] == 5){ SetSpawnInfo(playerid, 2, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; } }//pm
else if(PlayerInfo[InviteOffer[playerid]][pMembro] == 3) { if(PlayerInfo[InviteOffer[playerid]][pCargo] == 5){ SetSpawnInfo(playerid, 2, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; } }//bope
else if(PlayerInfo[InviteOffer[playerid]][pMembro] == 4) { if(PlayerInfo[InviteOffer[playerid]][pCargo] == 5){ SetSpawnInfo(playerid, 2, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; } }//fbi
else if(PlayerInfo[InviteOffer[playerid]][pMembro] == 5) { if(PlayerInfo[InviteOffer[playerid]][pCargo] == 5){ SetSpawnInfo(playerid, 2, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; } }//swat
else if(PlayerInfo[InviteOffer[playerid]][pMembro] == 6) { if(PlayerInfo[InviteOffer[playerid]][pCargo] == 5){ SetSpawnInfo(playerid, 2, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; } }//medico
else if(PlayerInfo[InviteOffer[playerid]][pMembro] == 7) { if(PlayerInfo[InviteOffer[playerid]][pCargo] == 5){ SetSpawnInfo(playerid, 10, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 10; gTeam[playerid] = 10; } }//mecanicos
else if(PlayerInfo[InviteOffer[playerid]][pMembro] == 8) { if(PlayerInfo[InviteOffer[playerid]][pCargo] == 5){ SetSpawnInfo(playerid, 10, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 10; gTeam[playerid] = 10; } }//reportes
else if(PlayerInfo[InviteOffer[playerid]][pMembro] == 9) { if(PlayerInfo[InviteOffer[playerid]][pCargo] == 5){ SetSpawnInfo(playerid, 10, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 10; gTeam[playerid] = 10; } }//taxistas
else if(PlayerInfo[InviteOffer[playerid]][pMembro] == 10) { if(PlayerInfo[InviteOffer[playerid]][pCargo] == 5){ SetSpawnInfo(playerid, 10, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 10; gTeam[playerid] = 10; } }//the triads
else if(PlayerInfo[InviteOffer[playerid]][pMembro] == 11) { if(PlayerInfo[InviteOffer[playerid]][pCargo] == 5){ SetSpawnInfo(playerid, 10, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 10; gTeam[playerid] = 10; } }//hitmans
else if(PlayerInfo[InviteOffer[playerid]][pMembro] == 12) { if(PlayerInfo[InviteOffer[playerid]][pCargo] == 5){ SetSpawnInfo(playerid, 5, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; } }//mafia cn
else if(PlayerInfo[InviteOffer[playerid]][pMembro] == 13) { if(PlayerInfo[InviteOffer[playerid]][pCargo] == 5){ SetSpawnInfo(playerid, 5, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; } }//yakuza
else if(PlayerInfo[InviteOffer[playerid]][pMembro] == 14) { if(PlayerInfo[InviteOffer[playerid]][pCargo] == 5){ SetSpawnInfo(playerid, 5, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; } }//los vagos
else if(PlayerInfo[InviteOffer[playerid]][pMembro] == 15) { if(PlayerInfo[InviteOffer[playerid]][pCargo] == 5){ SetSpawnInfo(playerid, 5, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; } }//grove
else if(PlayerInfo[InviteOffer[playerid]][pMembro] == 16) { if(PlayerInfo[InviteOffer[playerid]][pCargo] == 5){ SetSpawnInfo(playerid, 5, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; } }//ballas
else if(PlayerInfo[InviteOffer[playerid]][pMembro] == 17) { if(PlayerInfo[InviteOffer[playerid]][pCargo] == 5){ SetSpawnInfo(playerid, 5, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; } }//alqaeda
else if(PlayerInfo[InviteOffer[playerid]][pMembro] == 18) { if(PlayerInfo[InviteOffer[playerid]][pCargo] == 5){ SetSpawnInfo(playerid, 5, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; } }//ei
else if(PlayerInfo[InviteOffer[playerid]][pMembro] == 19) { if(PlayerInfo[InviteOffer[playerid]][pCargo] == 5){ SetSpawnInfo(playerid, 2, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; } }//exercito
else if(PlayerInfo[InviteOffer[playerid]][pMembro] == 20) { if(PlayerInfo[InviteOffer[playerid]][pCargo] == 5){ SetSpawnInfo(playerid, 5, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; } }//sons
else if(PlayerInfo[InviteOffer[playerid]][pMembro] == 21) { if(PlayerInfo[InviteOffer[playerid]][pCargo] == 5){ SetSpawnInfo(playerid, 5, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; } }//devils
else if(PlayerInfo[InviteOffer[playerid]][pMembro] == 22) { if(PlayerInfo[InviteOffer[playerid]][pCargo] == 5){ SetSpawnInfo(playerid, 2, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; } }//interpol
else if(PlayerInfo[InviteOffer[playerid]][pMembro] == 23) { if(PlayerInfo[InviteOffer[playerid]][pCargo] == 5){ SetSpawnInfo(playerid, 5, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; } }//ada
else if(PlayerInfo[InviteOffer[playerid]][pMembro] == 24) { if(PlayerInfo[InviteOffer[playerid]][pCargo] == 5){ SetSpawnInfo(playerid, 5, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; } }//tcp
else if(PlayerInfo[InviteOffer[playerid]][pMembro] == 25) { if(PlayerInfo[InviteOffer[playerid]][pCargo] == 5){ SetSpawnInfo(playerid, 5, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; } }//pcc
else if(PlayerInfo[InviteOffer[playerid]][pMembro] == 26) { if(PlayerInfo[InviteOffer[playerid]][pCargo] == 5){ SetSpawnInfo(playerid, 5, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; } }//cv
else if(PlayerInfo[InviteOffer[playerid]][pMembro] == 27) { if(PlayerInfo[InviteOffer[playerid]][pCargo] == 5){ SetSpawnInfo(playerid, 2, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; } }//pc
else if(PlayerInfo[InviteOffer[playerid]][pMembro] == 28) { if(PlayerInfo[InviteOffer[playerid]][pCargo] == 5){ SetSpawnInfo(playerid, 5, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; } }//taliban
else if(PlayerInfo[InviteOffer[playerid]][pMembro] == 29) { if(PlayerInfo[InviteOffer[playerid]][pCargo] == 5){ SetSpawnInfo(playerid, 5, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; } }//mafia j
else if(PlayerInfo[InviteOffer[playerid]][pMembro] == 30) { if(PlayerInfo[InviteOffer[playerid]][pCargo] == 5){ SetSpawnInfo(playerid, 5, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; } }//mafia m
convidado[playerid] = 0;
PlayerInfo[playerid][pMembro] = PlayerInfo[InviteOffer[playerid]][pLider]; //Provavel erro
PlayerInfo[playerid][pCargo] = 1;
format(gstring, 128, "* %s aceitou seu convite para entrar na sua organizaзгo.", PlayerName(playerid));
SendClientMessage(InviteOffer[playerid], COLOR_LIGHTBLUE, gstring);
format(gstring, sizeof(gstring), "* Vocк aceitou o convite de %s para entrar para organizaзгo: %s, parabйns.", PlayerName(InviteOffer[playerid]), NomeORG(InviteOffer[playerid]));
SendClientMessage(playerid, COLOR_LIGHTBLUE, gstring);
ConviteInfoOrg(PlayerName(playerid), InviteJob[playerid], 1);
if(PlayerInfo[playerid][pMembro] == 1) { PlayerInfo[playerid][pDepartamentoLS] = 1; }
if(PlayerInfo[playerid][pMembro] == 5) { PlayerInfo[playerid][pDepartamentoLS] = 1; }
if(PlayerInfo[playerid][pMembro] == 6) { PlayerInfo[playerid][pDepartamentoLS] = 1; }
if(PlayerInfo[playerid][pMembro] == 7) { PlayerInfo[playerid][pDepartamentoLS] = 1; }
if(PlayerInfo[playerid][pMembro] == 27) { PlayerInfo[playerid][pDepartamentoLS] = 1; }
SetPlayerSpawn(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "O jogador que lhe convidou nгo estб conectado.");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Vocк nгo foi convidado para nenhuma organizaзгo.");
return 1;
}
}