10.02.2010, 17:47
HOla buenas,
Estoy editando el comando /governament, abreviado /gov, usado por todos o casi todos los gm de rp,
їQue me pasa? Que intento autorizarlo para las facciones id 13 y id 4, pero no lo consigo, aca les dejo lo que edite, pero no me funciona
Mi pregunta es si alguien podria hacer que lo autorizara a fcciones 4 y 13 gracias
Estoy editando el comando /governament, abreviado /gov, usado por todos o casi todos los gm de rp,
їQue me pasa? Que intento autorizarlo para las facciones id 13 y id 4, pero no lo consigo, aca les dejo lo que edite, pero no me funciona
Код:
if(strcmp(cmd, "/government", true) == 0 || strcmp(cmd, "/gov", true) == 0) { if(IsPlayerConnected(playerid)) { if(gTeam[playerid] != 2) { if(PlayerInfo[playerid][pLeader] != 7) { SendClientMessage(playerid, COLOR_GREY, " You are not a Cop !"); return 1; } } if(PlayerInfo[playerid][pRank] < 6) { SendClientMessage(playerid, COLOR_GREY, " You need to be Rank 6 to be able to use this !"); return 1; } GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/gov)ernment [text]"); return 1; } SendClientMessageToAll(COLOR_WHITE, "|___________ Anuncio del Estado ___________|"); if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1) { if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "Jefe %s: %s", sendername, result); } else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "Sub Jefe %s: %s", sendername, result); } else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Capitan %s: %s", sendername, result); } SendClientMessageToAll(COLOR_BLUE, string); } else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) { format(string, sizeof(string), "Agente %s: %s", sendername, result); SendClientMessageToAll(COLOR_GRAD2, string); } else if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) { format(string, sizeof(string), "Soldado %s: %s", sendername, result); SendClientMessageToAll(COLOR_GREEN, string); } else if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4) { format(string, sizeof(string), "Medico %s: %s", sendername, result); SendClientMessageToAll(COLOR_GREY, string); } else if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13) { format(string, sizeof(string), "S.W.A.T %s: %s", sendername, result); SendClientMessageToAll(COLOR_GREY, string); } else if(PlayerInfo[playerid][pLeader] == 7) { format(string, sizeof(string), "Govierno %s: %s", sendername, result); SendClientMessageToAll(COLOR_GREY, string); } } return 1; }