23.06.2017, 02:06
Hola pasa que estoy haciendo que al tener un comando activado para los admins al hablar se les aсada el prefijo sobre su rango, y me funciona todo perfect pero no puedo hacerlo calzar para que al estar muteado por un admin con /mutear id, no pueda hablar... no se si me explico
Код:
if(Informacion[playerid][RangoEnElChat] == 1) { if(Informacion[playerid][Nivel] == 1) { new string[140]; GetPlayerName(playerid,string,sizeof(string)); format(string, sizeof(string), "|| [MODERADOR A PRUEBA] [PRINCIPIANTE] || %s [%d]: {FFFFFF}%s",string,playerid,text); SendClientMessageToAll(COLOR_AZUL, string); } else if(Informacion[playerid][Nivel] == 2) { new string[140]; GetPlayerName(playerid,string,sizeof(string)); format(string, sizeof(string), "|| [MODERADOR A PRUEBA] [MASTER] || %s [%d]: {FFFFFF}%s",string,playerid,text); SendClientMessageToAll(COLOR_AZUL, string); } else if(Informacion[playerid][Nivel] == 3) { new string[140]; GetPlayerName(playerid,string,sizeof(string)); format(string, sizeof(string), "|| [MODERADOR GLOBAL] [PRINCIPIANTE] || %s [%d]: {FFFFFF}%s",string,playerid,text); SendClientMessageToAll(COLOR_VERDE, string); } else if(Informacion[playerid][Nivel] == 4) { new string[140]; GetPlayerName(playerid,string,sizeof(string)); format(string, sizeof(string), "|| [MODERADOR GLOBAL] [MASTER] || %s [%d]: {FFFFFF}%s",string,playerid,text); SendClientMessageToAll(COLOR_VERDE, string); } else if(Informacion[playerid][Nivel] == 5) { new string[140]; GetPlayerName(playerid,string,sizeof(string)); format(string, sizeof(string), "|| [ADMINISTRADOR] [PRINCIPIANTE] || %s [%d]: {FFFFFF}%s",string,playerid,text); SendClientMessageToAll(COLOR_ROJO, string); } else if(Informacion[playerid][Nivel] == 6) { new string[140]; GetPlayerName(playerid,string,sizeof(string)); format(string, sizeof(string), "|| [ADMINISTRADOR] [MASTER] || %s [%d]: {FFFFFF}%s",string,playerid,text); SendClientMessageToAll(COLOR_ROJO, string); } else if(Informacion[playerid][Muteado] == 1) { SendClientMessage(playerid, -1, "{375FFF}[ERROR]: {FFFFFF}Estas muteado, no puedes hablar! apela a un miembro del staff con el comando {375FFF}[/DUDA]"); return 0; } } else { new Chat[128]; format(Chat, sizeof(Chat),"[%d]: %s", playerid, text); SendPlayerMessageToAll(playerid, Chat); SetPlayerChatBubble(playerid, text, 0x1111FFAA, 100.0, 10000); }