13.10.2012, 21:18
Tem essa aki
PHP код:
forward CheckInfoOrg(playerid);
public CheckInfoOrg(playerid)
{
if(IsPlayerConnected(playerid))
{
new PlayerNick[MAX_PLAYER_NAME];
GetPlayerName(playerid,PlayerNick,sizeof(PlayerNick));
for(new i = 1; i < sizeof(InfoOrg); i++)
{
if(PlayerInfo[playerid][pMember] > 0 || PlayerInfo[playerid][pLeader] > 0)
{
if(strcmp(PlayerNick,InfoOrg[i][Lider],true)==0)
{
PlayerInfo[playerid][pCheckInfoOrg] = 0;
return 1;
}
if(strcmp(PlayerNick,InfoOrg[i][SubLider],true)==0)
{
PlayerInfo[playerid][pCheckInfoOrg] = 0;
return 1;
}
if(strcmp(PlayerNick,InfoOrg[i][Membro1],true)==0)
{
PlayerInfo[playerid][pCheckInfoOrg] = 0;
return 1;
}
if(strcmp(PlayerNick,InfoOrg[i][Membro2],true)==0)
{
PlayerInfo[playerid][pCheckInfoOrg] = 0;
return 1;
}
if(strcmp(PlayerNick,InfoOrg[i][Membro3],true)==0)
{
PlayerInfo[playerid][pCheckInfoOrg] = 0;
return 1;
}
if(strcmp(PlayerNick,InfoOrg[i][Membro4],true)==0)
{
PlayerInfo[playerid][pCheckInfoOrg] = 0;
return 1;
}
if(strcmp(PlayerNick,InfoOrg[i][Membro5],true)==0)
{
PlayerInfo[playerid][pCheckInfoOrg] = 0;
return 1;
}
if(strcmp(PlayerNick,InfoOrg[i][Membro6],true)==0)
{
PlayerInfo[playerid][pCheckInfoOrg] = 0;
return 1;
}
if(strcmp(PlayerNick,InfoOrg[i][Membro7],true)==0)
{
PlayerInfo[playerid][pCheckInfoOrg] = 0;
return 1;
}
if(strcmp(PlayerNick,InfoOrg[i][Membro8],true)==0)
{
PlayerInfo[playerid][pCheckInfoOrg] = 0;
return 1;
}
if(strcmp(PlayerNick,InfoOrg[i][Membro9],true)==0)
{
return 1;
}
if(strcmp(PlayerNick,InfoOrg[i][Membro10],true)==0)
{
PlayerInfo[playerid][pCheckInfoOrg] = 0;
return 1;
}
if(strcmp(PlayerNick,InfoOrg[i][Membro11],true)==0)
{
PlayerInfo[playerid][pCheckInfoOrg] = 0;
return 1;
}
if(strcmp(PlayerNick,InfoOrg[i][Membro12],true)==0)
{
PlayerInfo[playerid][pCheckInfoOrg] = 0;
return 1;
}
if(strcmp(PlayerNick,InfoOrg[i][Membro13],true)==0)
{
PlayerInfo[playerid][pCheckInfoOrg] = 0;
return 1;
}
if(strcmp(PlayerNick,InfoOrg[i][Membro14],true)==0)
{
PlayerInfo[playerid][pCheckInfoOrg] = 0;
return 1;
}
if(strcmp(PlayerNick,InfoOrg[i][Membro15],true)==0)
{
PlayerInfo[playerid][pCheckInfoOrg] = 0;
return 1;
}
PlayerInfo[playerid][pCheckInfoOrg] = 1;
}
}
if(PlayerInfo[playerid][pCheckInfoOrg] >= 1)
{
if(PlayerInfo[playerid][pMember] > 0 || PlayerInfo[playerid][pLeader] > 0)
{
if(PlayerInfo[playerid][pLeader] > 0) { SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк foi demitido de lнder por um admin, agora vocк й um Civil !"); }
else { SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк foi demitido pelo seu lнder, agora vocк й um Civil !"); }
gTeam[playerid] = 3;
MedicBill[playerid] = 0;
PlayerInfo[playerid][pTeam] = 3;
PlayerInfo[playerid][pMember] = 0;
PlayerInfo[playerid][pLeader] = 0;
PlayerInfo[playerid][pRank] = 0;
SetPlayerSkin(playerid, 0);
if(PlayerInfo[playerid][pSex] == 1) { PlayerInfo[playerid][pSkin] = 289; } else { PlayerInfo[playerid][pSkin] = 12; }
PlayerInfo[playerid][pCheckInfoOrg] = 0;
SpawnPlayer(playerid);
return 1;
}
}
}
return 1;
}