10.05.2012, 23:25
Oi,Eu queria Juntar esses Dois Comandos Em Um Sу.Eu tentei varias vezes mais nao deu mt certo pq sempre aparecia a mensagem voce nao faz parte de nenhuma organizaзгo entгo tipo quem puder me ajudar a junta o PEDIRCONTAS+CONTASLIDER em um so comando eu agradeзo : P+ Rep
Aqui Os Codigos:
Obrigado.
Aqui Os Codigos:
Код:
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!"); return 1; } if(!strcmp("/contaslider", cmdtext, true)) { if(PlayerInfo[playerid][pLider] == 0) { SendClientMessage(playerid,COLOR_GREY," Vocк nгo й lнder de nenhuma organizaзгo!"); return 1; } 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; }