10.05.2012, 23:43
pawn Код:
if(!strcmp("/pedircontas", cmdtext, true))
{
if(PlayerInfo[playerid][pMembro] == 0)
{
SendClientMessage(playerid,COLOR_GREY," Vocк nгo faz parte de nemhuma organizaзгo!");
return 1;
}
DemitirInfoOrg(PlayerName(playerid));
gTeam[playerid] = 3;
PlayerInfo[playerid][pTeam] = 3;
PlayerInfo[playerid][pMembro] = 0;
PlayerInfo[playerid][pLider] = 0;
PlayerInfo[playerid][pCargo] = 0;
PlayerInfo[playerid][pSpawn] = 0;
if(PlayerInfo[playerid][pSex] == 1) { PlayerInfo[playerid][pSkin] = 23; } else { PlayerInfo[playerid][pSkin] = 226; }
SetSpawnInfo(playerid, gTeam[playerid], PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0);
MedicBill[playerid] = 0;
SpawnPlayer(playerid);
MedicBill[playerid] = 0;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Vocк pediu as contas, agora vocк й um Civil novamente!");
}
else if(PlayerInfo[playerid][pLider] == 0)
{
format(string, sizeof(string), "PLAYER: %s pediu contas de lider da org:[%s]",PlayerName(playerid), NomeORG(GetPlayerOrg(playerid)));
LideresLog(string);
DemitirInfoOrg(PlayerName(playerid));
gTeam[playerid] = 3;
PlayerInfo[playerid][pTeam] = 3;
PlayerInfo[playerid][pMembro] = 0;
PlayerInfo[playerid][pLider] = 0;
PlayerInfo[playerid][pCargo] = 0;
PlayerInfo[playerid][pSpawn] = 0;
if(PlayerInfo[playerid][pSex] == 1) { PlayerInfo[playerid][pSkin] = 23; } else { PlayerInfo[playerid][pSkin] = 226; }
SetSpawnInfo(playerid, gTeam[playerid], PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0);
MedicBill[playerid] = 0;
SpawnPlayer(playerid);
MedicBill[playerid] = 0;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Vocк pediu as contas, agora vocк й um Civil novamente!");
return 1;
}